If you simply "OR" the terms (or specify no operator and make sure that the default operator is "OR"), normal query scoring will rank results with more terms matching higher.

-- Jack Krupansky

-----Original Message----- From: Karthick Duraisamy Soundararaj
Sent: Friday, May 11, 2012 10:44 AM
To: solr-user@lucene.apache.org
Subject: And results before Or results

Lets say I have a query like "A B C". I want all the results that have "A B
and C" in them ahead of "A B" or "B C" or any combination of them.

My rule is this:
        "If there are there words A,B,C : Results of all three words
first, followed by 2 out of 3 words and then 1 out of 3 words."

Is that possible at all?

Reply via email to