- Original Message -
From: "Ian Lea"
To:
Sent: Thursday, December 18, 2008 3:33 PM
Subject: Re: IndexReader delete
Well, if the indexing is happening in a separate process then that
will have locked the index and you won't be able to delete by reader
in your search proces
Well, if the indexing is happening in a separate process then that
will have locked the index and you won't be able to delete by reader
in your search process. I'd suggest passing the deletions to the
indexer process. In my experience everything works smoother when all
index modifications happen
Any opinion on this.
- Original Message -
From: "Ganesh"
To:
Sent: Wednesday, December 17, 2008 4:28 PM
Subject: IndexReader delete
When i perform a delete, i am getting the following exception
org.apache.lucene.store.LockObtainFailedException: Lock obtain
When i perform a delete, i am getting the following exception
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
SimpleFSLock@/
org.apache.lucene.store.Lock.obtain(Lock.java:85)
org.apache.lucene.index.DirectoryIndexReader.acquireWriteLock(DirectoryIndexR
n 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > i want to ask, if i delete documents from index with delete(int i)
> > > does the IndexReader delete the terms of this document fro
Ok...
but can i search in documents which are marked for deletion?
Bye
> --- Ursprüngliche Nachricht ---
> Von: Yonik Seeley <[EMAIL PROTECTED]>
> An: java-user@lucene.apache.org
> Betreff: Re: IndexReader delete doc! delete terms?
> Datum: Fri, 9 Sep 2005 09:33:38
docs).
-Yonik
Now hiring -- http://tinyurl.com/7m67g
On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i want to ask, if i delete documents from index with delete(int i)
> does the IndexReader delete the terms of this document from index??
>
> thanks i
Hi,
i want to ask, if i delete documents from index with delete(int i)
does the IndexReader delete the terms of this document from index??
thanks in forward
Bye
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More
cene.apache.org
> Betreff: Re: IndexReader delete(int i)
> Datum: Mon, 29 Aug 2005 15:55:26 -0400
>
> Perhaps because you are not iterating over all the documents?
> numDocs() == maxDocs() - numer_of_deleted_docs
> So first try replacing numDocs() with maxDocs()
>
> -
Perhaps because you are not iterating over all the documents?
numDocs() == maxDocs() - numer_of_deleted_docs
So first try replacing numDocs() with maxDocs()
-Yonik
On 8/29/05, Derya Kasapoglu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> if i delete a document from index, what does the it do?
> I want t
Hi,
if i delete a document from index, what does the it do?
I want to know because if i delete documents from index which are
not anymore in the dokument directories like that:
IndexReader reader = IndexReader.open(dir);
for (int i=0; i if (!file.exists()) reader.delete(i);
}
reader.cl
11 matches
Mail list logo