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: 'solr-user@lucene.apache.org'
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
Francesco

Reply via email to