Re: deletes when the writer is open and autocommit is set to false

2009-02-11 Thread Vinubalaji Gopal
On Wed, Feb 11, 2009 at 8:50 AM, Michael McCandless wrote: > Hmm -- OK I just fixed that FAQ entry. Thanks for raising this! > Cool. > If you know the doc doesn't exist already, you gain some performance by > using add instead of update. But if performance is already fast enough, it > may be si

Re: deletes when the writer is open and autocommit is set to false

2009-02-11 Thread Michael McCandless
Vinubalaji Gopal wrote: On Wed, Feb 11, 2009 at 2:56 AM, Michael McCandless wrote: IndexWriter can in fact delete documents, by Term or by Query. It also has updateDocument, which under-the-hood simply calls deleteDocuments then addDocument. Awesome that FAQ entry confused me and I did

Re: deletes when the writer is open and autocommit is set to false

2009-02-11 Thread Vinubalaji Gopal
On Wed, Feb 11, 2009 at 2:56 AM, Michael McCandless wrote: > IndexWriter can in fact delete documents, by Term or by Query. It also has > updateDocument, which under-the-hood simply calls deleteDocuments then > addDocument. Awesome that FAQ entry confused me and I didn't look at IndexWriter java

Re: deletes when the writer is open and autocommit is set to false

2009-02-11 Thread Michael McCandless
IndexWriter can in fact delete documents, by Term or by Query. It also has updateDocument, which under-the-hood simply calls deleteDocuments then addDocument. Mike Vinubalaji Gopal wrote: Hi all, I am a new lucene user and got started with in a really quick time! Its been really nice and

deletes when the writer is open and autocommit is set to false

2009-02-10 Thread Vinubalaji Gopal
Hi all, I am a new lucene user and got started with in a really quick time! Its been really nice and I love it :) - I am still trying to do a few things the right way and digging through documentation/archives. Here is my question: What is the best/fastest way to batch index a large set of docum