lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: document scoring
Date Thu, 20 Mar 2008 15:39:56 GMT
Try TopDocs. You can use getMaxScore and divide....

Best
Erick

On Thu, Mar 20, 2008 at 11:12 AM, Cam Bazz <cambazz@gmail.com> wrote:

> Hello,
>
> I am querying an index by using custom boost factors for each field.
> Usually
> a query looks like:
>
> fieldA:"term1"^0.2 fieldB:"term2"^4
>
> when I get scores from HitCollector, they are not necessarily between 0
> and
> 1.
>
> How can I normalize these scores?
>
> Best.
> -C.A.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message