lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Ingersoll" <>
Subject Re: Advanced timestamp usage (or global value storage)
Date Wed, 25 Aug 2004 15:57:04 GMT

>>> 8/25/2004 11:50:01 AM >>>
On Aug 25, 2004, at 11:39 AM, Bernhard Messer wrote:

> If you already store the date time when the doc was index, you could

> use the following trick to get the last document added to the index:
>            while (--maxDoc > 0) {

Yes, but that's a linear search :(

You are right, in the worst case, this would be linear, but that would
require you to delete a lot of documents.  I would bet, that on average,
arguably nearly all cases, you would go through very few iterations
before finding the doc you are interested in

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

View raw message