lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: How to delete docs when using NRT?
Date Fri, 20 May 2011 18:23:11 GMT
Phew :)  Thanks for bringing closure Chris,

Mike

http://blog.mikemccandless.com

On Fri, May 20, 2011 at 12:29 PM, Chris Bamford
<chris.bamford@talktalk.net> wrote:
>
>  Mike - my bad.  I store my ids as numeric, and I was trying to delete using a string
termquery.  Got it working now.
>
> Thanks anyway
>
> - Chris
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Michael McCandless <lucene@mikemccandless.com>
> To: java-user@lucene.apache.org
> Sent: Fri, 20 May 2011 16:50
> Subject: Re: How to delete docs when using NRT?
>
>
> That should have worked.
>
> There's nothing special about deleting docs when using NRT reader.
>
> Can you boil it down to a test case?
>
> Mike
>
> http://blog.mikemccandless.com
>
> On Fri, May 20, 2011 at 11:30 AM, Chris Bamford
> <chris.bamford@talktalk.net> wrote:
>> Hi there,
>>
>> Is there something special I should be doing here? This is my sequence:
>>
>> open writer
>> add  doc #1
>> add  doc #2
>> get reader from writer
>> do a search on reader - matches doc #1
>> delete doc #1 from writer
>> commit writer
>> add doc #3
>> optimise writer
>> close writer
>>
>> So by my reckoning, my index should contain docs 2 & 3.
>> Luke says different - all 3 are there!  Why hasn't doc #1 gone?
>>
>> Have I missed something?
>>
>> Thanks,
>>
>> - Chris
>>
>>
>>
>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message