lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Search a list of words and returned order
Date Fri, 11 Apr 2014 16:08:34 GMT
Generally, the documents containing more of the terms should score higher 
and be returned first, but "relevancy" for some terms can skew that 
ordering, to some degree. What specific use cases are failing for you?

You can always add an additional optional subquery which is the AND of all 
terms and has a significant boost:

q=see spot run (+see +spot +run)^10

-- Jack Krupansky

-----Original Message----- 
From: Croci Francesco Luigi (ID SWS)
Sent: Friday, April 11, 2014 9:47 AM
To: ''
Subject: Search a list of words and returned order

When I search  for a list of words, per default Solr uses the OR operator.

In my case I index (pdfs) files. How/what can I do so that when I search the 
index for a list of words, I get the list of documents ordered first by  the 
ones that have all the words in them?

Thank you

View raw message