lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arturo Perez <ape...@hayesinc.com>
Subject What type of query best for OR with high score?
Date Thu, 25 Jan 2007 20:02:06 GMT
Hi all,

Which type of query should I use for the following type of thing.

I have multiple words/phrases.  I want to run a search for them all OR'd
together.  But I want the documents with the most distinct matches to have
the highest score.

An example.  I want to search for "TOM OR DICK OR HARRY". I want the
documents with TOM AND DICK AND HARRY to score highest, followed by those
with any two of the words then followed by those with only one of the
words.

Things get really interesting when the search string contains subphrases;
e.g "TOM SMITH" OR "DICK JONES" or "HARRY SMELTZER".

suggestions?
arturo



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message