lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Boosting Search Results
Date Mon, 03 Aug 2009 09:32:59 GMT
You could write your own Similarity, extending DefaultSimilarity and
overriding whichever methods will help you achieve your aims.

Or how about running 2 searches, the first with both words required
(+word1 +word2) and then a second search where they aren't both
required (word1 word2).  Then merge/dedup the two lists of hits,
keeping the ones from the first search at the top.


On Mon, Aug 3, 2009 at 4:14 AM, bourne71<> wrote:
> Thanks for all the reply. It help me to understand problem better, but is it
> possible to create a query that will give additional boost to the results if
> and only if both of the word is found inside the results. This will
> definitely make sure that the results will be in the higher up of the list.
> Can this type of query be created?
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message