lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Keegan <peterlkee...@gmail.com>
Subject Re: Use of AllTermDocs with custom scorer
Date Mon, 16 Nov 2009 19:50:48 GMT
The same thing is occurring in my custom sort comparator. The ScoreDocs
passed to the 'compare' method have docIds that seem to be relative to the
segment. Is there any way to translate these into index-wide docIds?

Peter

On Mon, Nov 16, 2009 at 2:06 PM, Peter Keegan <peterlkeegan@gmail.com>wrote:

> I forgot to mention that this is with V2.9.1
>
>
> On Mon, Nov 16, 2009 at 1:39 PM, Peter Keegan <peterlkeegan@gmail.com>wrote:
>
>> I have a custom query object whose scorer uses the 'AllTermDocs' to get
>> all non-deleted documents. AllTermDocs returns the docId relative to the
>> segment, but I need the absolute (index-wide) docId to access external data.
>> What's the best way to get the unique, non-deleted docId?
>>
>> Thanks,
>> Peter
>>
>
>

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