Re: IndexReader delete

2008-12-18 Thread Ganesh
- 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

Re: IndexReader delete

2008-12-18 Thread Ian Lea
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

Re: IndexReader delete

2008-12-17 Thread Ganesh
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

IndexReader delete

2008-12-17 Thread Ganesh
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

Re: IndexReader delete doc! delete terms?

2005-09-12 Thread Yonik Seeley
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

Re: IndexReader delete doc! delete terms?

2005-09-10 Thread dozean
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

Re: IndexReader delete doc! delete terms?

2005-09-09 Thread Yonik Seeley
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

IndexReader delete doc! delete terms?

2005-09-09 Thread dozean
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

Re: IndexReader delete(int i)

2005-08-30 Thread dozean
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() > > -

Re: IndexReader delete(int i)

2005-08-29 Thread Yonik Seeley
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

IndexReader delete(int i)

2005-08-29 Thread Derya Kasapoglu
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