Phew :) Thanks for bringing closure Chris, Mike
http://blog.mikemccandless.com On Fri, May 20, 2011 at 12:29 PM, Chris Bamford <[email protected]> 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 <[email protected]> > To: [email protected] > 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 > <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
