I'd suggest a proximity search:
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_search_for_one_term_near_another_term_.28say.2C_.22batman.22_and_.22movie.22.29
I suppose you are using the dismax handler (you should anyway).
Quote:
The dismax handler can easily create sloppy phrase queries with the pf
(phrase fields) and ps (phrase slop) parameters:

q=batman movie&pf=text&ps=100

The dismax handler also allows users to explicitly specify a phrase
query with double quotes, and the qs(query slop) parameter can be used
to add slop to any explicit phrase queries:

q="batman movie"&qs=100



Dietrich Schmidt
914 298 0548
http://www.linkedin.com/in/dietrichschmidt



On Fri, Jul 22, 2011 at 8:01 PM,  <[email protected]> wrote:
> Hello,
>
> I use nutch 1.2 and solr to index about 3500 domains. I noticed that search 
> results for two or more keywords are not ranked properly.
> For example for keyword Lady Gaga some results that has Lady are displayed 
> first then some results with both keywords and etc. It seems to me that 
> results with both words must be displayed in the first place and those with 
> one of the keywords must follow them.
>
> Any idea how to correct this.
>
> Thanks.
> Alex.
>

Reply via email to