lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: int vs long and document ids on 64bit machines.
Date Thu, 11 Mar 2004 20:37:18 GMT
hui wrote:
> If the document id is going to be changed, is it possible to define an
> interface so the user could provide other implementation to replace the
> default one? For example, the document unique timestamp or other fields as
> long as they are long could be used.

I don't think that would be a good idea.  Lucene's index format requires 
document ids to increase as documents are added, and things are *much* 
more efficient when the numbering is dense.

> In this way, we can easily get another
> sorting option rather than the default score sorting. Still not sure whether
> it is a good idea or not though.

There is good result sorting support in the latest CVS that will be in 1.4.


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

View raw message