With the edismax query parser you can specify "phrase boosting" using the pf, pf2, and pf3 (and ps, ps2, ps3) request parameters, and you can set the boost factor for each.

pf, pf2, and pf3 have the same format as qf.

See:
http://wiki.apache.org/solr/ExtendedDisMax

You can also simulate that in the Lucene/SOlr query parser by "OR"ing in the phrases with boost factors.

-- 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