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 Rajendra Rao <ra...@launchship.com> on 2014/06/11 14:05:37 UTC

will score get changed as document continuously added.

I am planning to implement lucene searching  in my project.

I have to save score of document corresponding to query .

say i have query q  and documents  d1,d2,d3 .after running lucene  i got

q1     d3    0.643
        d1    0.554
        d2    0.462

Now 1 more document d4 comes and above process start again will it change
the above score or not.

RE: will score get changed as document continuously added.

Posted by Chris Hostetter <ho...@fucit.org>.
: Yes the score will change, because the new documents change the 
: statistics. In general, scores cannot be seen as absolute numbers, they 
: are only useful to compare between search results of the exact same 
: query at the same index snapshot. They have no global meaning.

This wiki page goes into more depth (it focuses on a more specific 
question people frequently ask, but the core of the problem is the 
same as what you are asking about)...

https://wiki.apache.org/lucene-java/ScoresAsPercentages


-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: will score get changed as document continuously added.

Posted by Uwe Schindler <uw...@thetaphi.de>.
Yes the score will change, because the new documents change the statistics. In general, scores cannot be seen as absolute numbers, they are only useful to compare between search results of the exact same query at the same index snapshot. They have no global meaning.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Rajendra Rao [mailto:rajendra.rao@launchship.com]
> Sent: Wednesday, June 11, 2014 2:06 PM
> To: java-user@lucene.apache.org
> Subject: will score get changed as document continuously added.
> 
> I am planning to implement lucene searching  in my project.
> 
> I have to save score of document corresponding to query .
> 
> say i have query q  and documents  d1,d2,d3 .after running lucene  i got
> 
> q1     d3    0.643
>         d1    0.554
>         d2    0.462
> 
> Now 1 more document d4 comes and above process start again will it change
> the above score or not.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org