You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Earwin Burrfoot <ea...@gmail.com> on 2009/04/30 22:44:09 UTC

Score calculation with new by-segment collection

Did I miss something, or when trunk switched to collecting on
SegmentReaders we've lost proper scores?
I mean, before score depended on TF calculated across all the index,
and now it depends on TF for a given segment (yup, unless I missed
something).
Per-segment TF can vary wildly, especially in case of smaller segments.

-- 
Kirill Zakharenko/Кирилл Захаренко (earwin@gmail.com)
Home / Mobile: +7 (495) 683-567-4 / +7 (903) 5-888-423
ICQ: 104465785

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


Re: Score calculation with new by-segment collection

Posted by Earwin Burrfoot <ea...@gmail.com>.
On Fri, May 1, 2009 at 00:47, Yonik Seeley <yo...@lucidimagination.com> wrote:
> On Thu, Apr 30, 2009 at 4:44 PM, Earwin Burrfoot <ea...@gmail.com> wrote:
>> Did I miss something, or when trunk switched to collecting on
>> SegmentReaders we've lost proper scores?
>> I mean, before score depended on TF calculated across all the index,
>> and now it depends on TF for a given segment (yup, unless I missed
>> something).
>> Per-segment TF can vary wildly, especially in case of smaller segments.
> tf is per-document, not per index. idf is per index,
Yup, my bad.

> and is calculated in the creation of Weight at the top-level index reader.
Aha, thanks a lot.


-- 
Kirill Zakharenko/Кирилл Захаренко (earwin@gmail.com)
Home / Mobile: +7 (495) 683-567-4 / +7 (903) 5-888-423
ICQ: 104465785

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


Re: Score calculation with new by-segment collection

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Thu, Apr 30, 2009 at 4:44 PM, Earwin Burrfoot <ea...@gmail.com> wrote:
> Did I miss something, or when trunk switched to collecting on
> SegmentReaders we've lost proper scores?
> I mean, before score depended on TF calculated across all the index,
> and now it depends on TF for a given segment (yup, unless I missed
> something).
> Per-segment TF can vary wildly, especially in case of smaller segments.

tf is per-document, not per index.
idf is per index, and is calculated in the creation of Weight at the
top-level index reader.

-Yonik
http://www.lucidimagination.com

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