lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <>
Subject Re: Lucene id generation
Date Thu, 14 Dec 2006 11:24:33 GMT

11 dec 2006 kl. 20.04 skrev Chris Hostetter:

> if you are trying to think of Lucene's docid as a meaningful  
> number, you
> are doing something wrong.

There is this one place where I use it. The index is add only, and  
the only data that interests me is the stored field MyID, also kept  
track in an int[docid]. In case of index operation that change docid,  
I simply repopulate the int[].

I throw this MyID value around quite a bit, starting in the hit  
collector. It save me time from deserializing all hits.

Is this reasonable?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message