lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Deleting document form index by id
Date Sat, 27 Jun 2015 19:56:49 GMT
Gaaaah, I keep losing track of what list I'm on..... Thanks!

On Sat, Jun 27, 2015 at 1:07 PM, Uwe Schindler <uwe@thetaphi.de> wrote:
> This was about Lucene, Erick!
>
> There is IndexWriter#deleteDocument taking a term. The term must match a StringField
holding your ID.
>
> It is no longer possible to easily delete by internal Lucene doc id. You can try this
with tryDelete but this only works if index did not change inbetween. The doc id must come
from NRT reader. Mike McCandless may explain it more exactly.
>
> Uwe
>
> Am 27. Juni 2015 12:12:17 EDT, schrieb Erick Erickson <erickerickson@gmail.com>:
>>http://solr:port/solr/collection/update?commit=true&<delete><id>123</id></delete>
>>
>>
>>On Sat, Jun 27, 2015 at 3:00 AM, Behnam Khoshsafar
>><b.khoshsafar@hamgam.ir> wrote:
>>> I need example of deleting one document from index by id in lucene
>>5.2. tnx
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>For additional commands, e-mail: java-user-help@lucene.apache.org
>
> --
> Uwe Schindler
> H.-H.-Meier-Allee 63, 28213 Bremen
> http://www.thetaphi.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message