n i delete
> the document when the files they represent are deleted in my file
repository
>
> Thanks in advance for your reply
>
>
>
> Erick Erickson <[EMAIL PROTECTED]> wrote:
> Do NOT rely on the Lucene document number. It changes periodically. As
I
> understand it
Erickson <[EMAIL PROTECTED]> wrote:
Do NOT rely on the Lucene document number. It changes periodically. As I
understand it the general algorithm is that each doc gets an ID one
greater
than the current max doc ID at INDEX time. However, when you delete
documents and optimize your index, t
Erick Erickson <[EMAIL PROTECTED]> wrote:
Do NOT rely on the Lucene document number. It changes periodically. As I
understand it the general algorithm is that each doc gets an ID one greater
than the current max doc ID at INDEX time. However, when you delete
documents and optimiz
Do NOT rely on the Lucene document number. It changes periodically. As I
understand it the general algorithm is that each doc gets an ID one greater
than the current max doc ID at INDEX time. However, when you delete
documents and optimize your index, the document IDs change. Simplistically,
say
Hi,
How is this document number assigned to documents. Can i give my own
document number.
I would like to get the document number for a particular file that i added
to an index.
-
Find out what India is talking
On Friday 27 January 2006 02:36, Chun Wei Ho wrote:
> Thanks for the info :) One last related question.
>
> If I delete documents using a IndexReader(), can I assume that the
> internal document numbers of other undeleted documents (obtained using
> the same IndexReader instance) will not change u
Thanks for the info :) One last related question.
If I delete documents using a IndexReader(), can I assume that the
internal document numbers of other undeleted documents (obtained using
the same IndexReader instance) will not change until I call
IndexReader.close()?
On Thursday 26 January 2006 19:44, Chris Hostetter wrote:
>
> : > The document number is the variable i in this case.
> : If the document number is the variable i (enumerated from numDocs()),
> : what's the difference between numDocs() and maxDoc() in this case? I
> : w
eDeleted(doc)) {
> > > ir.delete(docNum); // <- I need the docNum for doc.
> > > }
> > > }
> > >
> > > How do I get the docNum for IndexReader.delete() function in the above
> > > case? Is there a API function I am missing? I am working with a merged
: > The document number is the variable i in this case.
: If the document number is the variable i (enumerated from numDocs()),
: what's the difference between numDocs() and maxDoc() in this case? I
: was previously under the impression that the internal docNum might be
: different to the
w do I get the docNum for IndexReader.delete() function in the above
> > case? Is there a API function I am missing? I am working with a merged
>
> The document number is the variable i in this case.
If the document number is the variable i (enumerated from numDocs()),
what's the
houldBeDeleted(doc)) {
> ir.delete(docNum); // <- I need the docNum for doc.
> }
> }
>
> How do I get the docNum for IndexReader.delete() function in the above
> case? Is there a API function I am missing? I am working with a merged
The document number is the
I am attempting to prune an index by getting each document in turn and
then checking/deleting it:
IndexReader ir = IndexReader.open(path);
for(int i=0;i
Yep. hits.id() should do it.
Gusenbauer Stefan wrote:
Gusenbauer Stefan wrote:
I've searching trough the archives but is there a way to get the
document number for a specific document? I would need it for the Method
getTermFreqVector of IndexReader? For deleting I've saved a
Gusenbauer Stefan wrote:
>I've searching trough the archives but is there a way to get the
>document number for a specific document? I would need it for the Method
>getTermFreqVector of IndexReader? For deleting I've saved a unique ID
>Field to delete the documents but
I've searching trough the archives but is there a way to get the
document number for a specific document? I would need it for the Method
getTermFreqVector of IndexReader? For deleting I've saved a unique ID
Field to delete the documents but how I get the document number?
tha
16 matches
Mail list logo