Are you using a hit collector? I think if you use a hit collector rather than the Hits object for getting query results, deleted items will still be returned as results. My workaround for this was to run optimize after I finish a batch of deletes, which works fine for my system because I only run a batch of deletes once a day.
Peter > -----Original Message----- > From: Dan Quaroni [mailto:[EMAIL PROTECTED] > Sent: Monday, October 24, 2005 5:41 PM > To: java-user@lucene.apache.org > Subject: Delete doesn't delete? > > I know there's a little bit of trickery when it comes to > deletes (i.e. it's still in the index until optimize, still > available to open readers, etc) however I'm having this problem: > > I've implemented a call to delete by term. It tells me that > it deleted 1 item, but then I go and open a new reader on the > index, search for this document, and I find it. Confused, I > run the delete again, and it once again tells me 1 document > deleted. And still, I can open a new searched and search for it. > > I've tried closing the reader that I used to delete it, still no luck. > > Any suggestions? > > --------------------------------------------------------------------- > 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]