RE: Deleting a Document

2006-01-08 Thread Koji Sekiguchi
Hi Harini, I meant you close the reader first, then get a new searcher. regards, Koji > -Original Message- > From: Harini Raghavan [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 1:16 PM > To: java-user@lucene.apache.org > Subject: Re: Deleting a Document > > > Hi Koji, > I

Re: Deleting a Document

2006-01-08 Thread Yonik Seeley
Closing the reader that did the deletion causes the deletions to be flushed to the index. After that point, any new readers you open will see the deletions. Any old index readers that were opened before the deleting reader was closed will still see the old version of the index (without the deletio

Re: Deleting a Document

2006-01-08 Thread Harini Raghavan
Hi Koji, I am closing the reader after deleting. You can see the close being called in the finally block in the code. -Harini Koji Sekiguchi wrote: Hi Harini, Close the reader after delete docs to take effect. Hope this helps, Koji -Original Message- From: Harini Raghavan [mai

Compass Framework 0.8 + Jdbc Lucene Directory

2006-01-08 Thread Shay Banon
We are pleased to announce the 0.8.0 release of Compass Framework - A Java Search Engine Framework based on Lucene. Major feature of this release is the ability to store Lucene index within a database. The feature has two parts: A complete Lucene Jdbc Directory implementation which is separate

Re: Search result snippets?

2006-01-08 Thread Dan Frankowski
Koji Sekiguchi wrote: Hi Dan, I've experienced same error you are facing. Check out: http://www.gossamer-threads.com/lists/lucene/java-user/28554?search_string=T ermVectorOffsetInfo;#28554 Hope this helps. Koji Thanks! That helped! I put all this in the FAQ entry: http://wiki.apache.o

RE: numDocs() after undeleteAll()

2006-01-08 Thread Koji Sekiguchi
Yonik, > Are you using the latest version of Lucene (after Dec 8th)? There was > a bug fix regarding this: > > http://issues.apache.org/jira/browse/LUCENE-479 Thank you. Fixed! Koji - To unsubscribe, e-mail: [EMAIL PROTECT

Re: numDocs() after undeleteAll()

2006-01-08 Thread Yonik Seeley
Are you using the latest version of Lucene (after Dec 8th)? There was a bug fix regarding this: http://issues.apache.org/jira/browse/LUCENE-479 -Yonik On 1/8/06, Koji Sekiguchi <[EMAIL PROTECTED]> wrote: > Hello Luceners! > > steps: > > 1. index has 15 docs and has no deleted docs > 2. call Ind

RE: Deleting a Document

2006-01-08 Thread Koji Sekiguchi
Hi Harini, Close the reader after delete docs to take effect. Hope this helps, Koji > -Original Message- > From: Harini Raghavan [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 1:09 AM > To: java-user@lucene.apache.org > Subject: Deleting a Document > > > Hi, > I want to up

numDocs() after undeleteAll()

2006-01-08 Thread Koji Sekiguchi
Hello Luceners! steps: 1. index has 15 docs and has no deleted docs 2. call IndexReader.delete(Term) and 6 docs are deleted 3. now maxDoc() == 15, numDocs() == 9 4. call IndexReader.undeleteAll() 5. maxDoc() == 15, numDocs() == 9 <> 6. close IndexReader and open again 7. now maxDoc() == 15,

Deleting a Document

2006-01-08 Thread Harini Raghavan
Hi, I want to update a document in the lucene index. As mentioned in the documentation, I tried to delete the document using IndexReader.delete method. But even after I delete the document, I am able to see the document when I perform a search. I thought this could be because, I am caching the