Ask a questionAsk a question
 

AnswerSearch Core Result Web Part

  • Monday, November 02, 2009 8:32 AMVuthy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is it possible to render search results in "Search Core Result" web part with result getting from code accessing Search API rather than using the result set from OOTB?


    Vuthy

Answers

  • Monday, November 02, 2009 3:09 PMCoreyRoth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Not really without extensive use of reflection.  You can override the query some using that technique but you can't actually be the one that executes the API call and get the results.  If you are curious about just changing the query, look and see how I did it with the Wildcard Search web part.
    Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth

All Replies

  • Monday, November 02, 2009 3:09 PMCoreyRoth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Not really without extensive use of reflection.  You can override the query some using that technique but you can't actually be the one that executes the API call and get the results.  If you are curious about just changing the query, look and see how I did it with the Wildcard Search web part.
    Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth
  • Tuesday, November 03, 2009 2:03 AMVuthy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks for your idea. I'd like to know about changing the querry, but the link you provided doesn't work.


    Vuthy
  • Tuesday, November 03, 2009 2:57 PMCoreyRoth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I've corrected the link.  Please let me know if you have any questions.
    Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth