You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cam Bazz <ca...@gmail.com> on 2008/03/20 16:12:00 UTC
document scoring
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.
Re: document scoring
Posted by Erick Erickson <er...@gmail.com>.
Try TopDocs. You can use getMaxScore and divide....
Best
Erick
On Thu, Mar 20, 2008 at 11:12 AM, Cam Bazz <ca...@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.
>