lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anshum <ansh...@gmail.com>
Subject Re: Calculate document lucene score after the search
Date Tue, 19 Apr 2011 03:33:40 GMT
Hi Madhu,
You could use IndexSearcher.explain(..) to explain the result and get the
detailed breakup of the score. That should probably help you with
understanding the boost and score as calculated by lucene for your app.

--
Anshum Gupta
http://ai-cafe.blogspot.com


On Tue, Apr 19, 2011 at 2:32 AM, <madhuri_1820@yahoo.com> wrote:

> Hi,
>
> I am trying to find the actual lucene score of the document after the
> search. I have set different boost values to fields. I am using
> document.getBoost(), to find the score but I am getting document boost as 1
> for all the documents.
>
> Is there any way I can calculate the actual score of the document.
>
> Thanks,
> Madhu.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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