lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cam Bazz" <camb...@gmail.com>
Subject Re: deleting documents with doc id
Date Sat, 26 Jul 2008 18:17:33 GMT
hello,

the thing is:

I got a indexwriter and indexsearcher.

I do a indexsearcher.getIndexReader.delete(int id)

would not that cause problems? there is not a way to delete from
indexwriter, and I think i will cause a lock issue deleting from
indexsearcher.

best,
-C.B.

On Thu, Jul 24, 2008 at 2:13 AM, Karl Wettin <karl.wettin@gmail.com> wrote:

>
> 23 jul 2008 kl. 22.08 skrev Cam Bazz:
>
>
>  hello -
>>
>> if I make a query and get the document ids and delete with the document id
>> -
>> could there be a side effect?
>>
>> my index is committed periodically, but i can not say when it is
>> committed.
>>
>
> The only thing is that the deltions will not be visible until you create a
> new IndexReader. Also, lots and lots of deletions without optimizing an
> index can have an impact on performance, but that is not something you are
> likely to encounter.
>
>
>      karl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message