lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kim" <>
Subject RE: Delete doesn't delete?
Date Tue, 25 Oct 2005 21:07:01 GMT
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. 


> -----Original Message-----
> From: Dan Quaroni [] 
> Sent: Monday, October 24, 2005 5:41 PM
> To:
> 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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message