lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Custom score question
Date Fri, 08 Feb 2013 12:31:54 GMT
The score from the main query is passed to the customScore() methods
of CustomScoreProvider so you can tweak that as you will.  Or, easier,
use document boosting to set a low boost for common titles.  How are
you going to determine if a title is common or not?

Lucene by default will tend to favour rarer terms - maybe you can
achieve the same result more easily by using/tweaking an alternative
Similarity implementation.


On Fri, Feb 8, 2013 at 10:41 AM, heikki <> wrote:
> hello,
> I have the following question:
> is it possible to combine the result of a custom score, with the normal
> relevance ranking score ?
> We'd like to have a scoring where documents that have a "title" field that's
> the same as the "title" of many other documents, are ranked lower. But
> without losing the usual relevance ranking score--just influence it a bit.
> I suppose I could make a CustomScoreQuery that calculates something based on
> frequency of titles, but I don't see how that than might be combined with
> the default ranking score.
> Does anyone have a suggestion ?
> Kind regards
> Heikki Doeleman
> --
> 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