Re: Custom filters & document numbers

2005-03-01 Thread Doug Cutting
[EMAIL PROTECTED] wrote: Does this happen frequently? Like Stanislav has been asking... what sort of operations on the index cause the document number to change for any given document? Documents are only re-numbered after there have been deletions. Once there have been deletions, renumbering may

Re: Custom filters & document numbers

2005-03-01 Thread tomsdepot-lucene
gt; - Original Message - > From: "Vanlerberghe, Luc" <[EMAIL PROTECTED]> > To: "Lucene Users List" > Sent: Thursday, February 24, 2005 4:07 PM > Subject: RE: Custom filters & document numbers > > > > An IndexReader will always see

Re: Custom filters & document numbers

2005-02-24 Thread Stanislav Jordanov
ot; <[EMAIL PROTECTED]> To: "Lucene Users List" Sent: Thursday, February 24, 2005 4:07 PM Subject: RE: Custom filters & document numbers > An IndexReader will always see the same set of documents. > Even if another process deletes some documents, adds new ones or > op

RE: Custom filters & document numbers

2005-02-24 Thread Vanlerberghe, Luc
An IndexReader will always see the same set of documents. Even if another process deletes some documents, adds new ones or optimizes the complete index, your IndexReader instance will not see those changes. If you detect that the Lucene index changed (e.g. by calling IndexReader.getCurrentVersion(