Mailing List Archive

continue - delete/update
Hello All !
I see delete method in IndexReader, but when I delete item from
reader - this item will not be deleted physically.
So I must rewrite all index after each deleting ??
Or it is quite smart to be rewrited partially ?
--
Best regards,
Serge mailto:bitl@mail.ru


--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: continue - delete/update [ In reply to ]
You don't need to rewrite the index after each deletion,
but you could consider optimizing it after a batch of
changes. See the javadoc for IndexWriter.



--
Ian.
ian.lea@blackwell.co.uk


"Serge A. Redchuk" wrote:
>
> Hello All !
> I see delete method in IndexReader, but when I delete item from
> reader - this item will not be deleted physically.
> So I must rewrite all index after each deleting ??
> Or it is quite smart to be rewrited partially ?

--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
Re: continue - delete/update [ In reply to ]
I think if you call IndexReader.close() then the deleted item really goes away.

"Serge A. Redchuk" wrote:

> Hello All !
> I see delete method in IndexReader, but when I delete item from
> reader - this item will not be deleted physically.
> So I must rewrite all index after each deleting ??
> Or it is quite smart to be rewrited partially ?
> --
> Best regards,
> Serge mailto:bitl@mail.ru
>
> --
> To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>

--
http://www.tropo.com/



--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>