lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Adding another factor to Lucene search
Date Mon, 02 Mar 2009 11:12:21 GMT

Document.setBoost(float boost) where boost is either your score as is,
or a value based on that score, might do the trick for you.

Other boosting and custom score options include BoostingQuery,
BoostingTermQuery and CustomScoreQuery.

A google search for "lucene boosting" throws up lots of hits.


On Mon, Mar 2, 2009 at 10:05 AM, liat oren <> wrote:
> Hi,
> I would like to add to lucene's score another factor - a score between
> words.
> I have an index that holds couple of words with their score.
> How can I take it into account when using Lucene search?
> Many thanks,
> Liat

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

View raw message