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 15:50:41 GMT
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


Mime
View raw message