Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-28 Thread Michael McCandless
Ahh gotchya, OK. Mike Ajay Garg wrote: Thanks Mike. Yes, I know, 2.3.2 doesn't have commit(). That's why, I asked whether commit = close + new IndexWriter, because then I can write a commit() method, encapslating close() + new IndexWriter. Thanks a ton for the prompt replies.. Ajay Gar

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-27 Thread Ajay Garg
Thanks Mike. Yes, I know, 2.3.2 doesn't have commit(). That's why, I asked whether commit = close + new IndexWriter, because then I can write a commit() method, encapslating close() + new IndexWriter. Thanks a ton for the prompt replies.. Ajay Garg Michael McCandless-2 wrote: > > > Ajay Garg

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Michael McCandless
Ajay Garg wrote: Pardon me. But will commit() be "code-fully" equal to calling close() followed by reinstantiating IW with create=false ??? If the above is indeed true, I can very well begin with my work. Yes, commit() can be seen as achieving exactly the same as close() and opening a ne

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Michael McCandless
Yes. Mike Ajay Garg wrote: So commit() will be available from 2.4 onwards?? Michael McCandless-2 wrote: Ajay Garg wrote: Thanks Mike. That was quite explanatory. A couple of doubts: You're welcome! 1. The deletions apply to buffered as well as stored-in-RAM documents. Right. So,

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Ajay Garg
Pardon me. But will commit() be "code-fully" equal to calling close() followed by reinstantiating IW with create=false ??? If the above is indeed true, I can very well begin with my work. I ask this, because I plan to work within a fortnight, and 2.4 is still someway away, and the primary reason

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Ajay Garg
So commit() will be available from 2.4 onwards?? Michael McCandless-2 wrote: > > > Ajay Garg wrote: > >> Thanks Mike. That was quite explanatory. A couple of doubts: > > You're welcome! > >> 1. The deletions apply to buffered as well as stored-in-RAM documents. >> Right. So, if the index dir

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Michael McCandless
Ajay Garg wrote: Thanks Mike. That was quite explanatory. A couple of doubts: You're welcome! 1. The deletions apply to buffered as well as stored-in-RAM documents. Right. So, if the index directory contains 1 document that matches a deleteDocument query, and 1 document in RAM that contains

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Ajay Garg
Thanks Mike. That was quite explanatory. A couple of doubts : 1. The deletions apply to buffered as well as stored-in-RAM documents. Right. So, if the index directory contains 1 document that matches a deleteDocument query, and 1 document in RAM that contains the same deleteDocument query, then,

Re: Query in IndexWriter.deleteDocuments(Term term)

2008-07-26 Thread Michael McCandless
java_is_everything wrote: Hi all. This may seem a longish and informal mail, but do correct me if my assumptions are wrong anywhere, otherwise my actual doubt will make no sense. Say I opened an IndexWriter on an initially empty directory, using autocommit = true. Now, what I do is add and d

Query in IndexWriter.deleteDocuments(Term term)

2008-07-25 Thread java_is_everything
Hi all. This may seem a longish and informal mail, but do correct me if my assumptions are wrong anywhere, otherwise my actual doubt will make no sense. Say I opened an IndexWriter on an initially empty directory, using autocommit = true. Now, what I do is add and delete documents randomly. I se