Hello,

I have a situation where I want certain documents to appear at the top of the 
hit list for certain searches, regardless of their score.  One can think of it 
as the ads right on top of Google's search results (but I'm not dealing with 
ads).

Example:
If I'm searching books in a bookstore, and a person is searching for "lucene", 
the owner of the bookstore may want to promote the recently published "Lucene 
in Action" instead of some other book about Lucene, so he wants any search for 
"lucene" or "java search" to put the link to "Lucene in Action" on top.

Is there a good way to accomplish this in Solr?
My initial thoughts are that it would be best to have an external store, maybe 
even a Lucene index.  This store would host the data to display on top of hits, 
as well as keywords/phrases that would have to match user's search terms.  A 
custom RequestHandler would then perform a regular search (a la any of the 
existing RequestHandlers), plus pull the data from this side store, and stick 
those in the response.

Is this a good candidate for a custom RequestHandler?

Thanks,
Otis



Reply via email to