lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: IndexReader.document(int i)
Date Tue, 20 Jan 2004 17:33:18 GMT
Nicolas Maisonneuve wrote:
> i would like to know  
> in the IndexReader.document(int i)
> what is this number  i ? 
> if the the first document is the oldest document indexed 
> and the last the youngest ? (so we can sort by date  easyly) ?

Yes, documents with lower numbers were indexed earlier.  As documents 
are deleted the numbers of other, higher documents shift downwards, but 
the order of document numbers always represents the order that documents 
were added to the index.


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

View raw message