lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mossaab Bagdouri <bagdouri_moss...@yahoo.fr>
Subject Re: Lucene 4.0 delete by ID
Date Fri, 26 Oct 2012 23:47:18 GMT
Lucene document IDs are not stable. You could add a field with an ID that
you maintain. Your query would then be just a TermQuery on the ID.

Regards,
Mossaab


2012/10/26 Scott Smith <ssmith@mainstreamdata.com>

> I'm currently converting some lucene code to 4.0.  It appears that you are
> no longer allowed to delete a document by its ID.  Is that correct?  Is my
> only option to figure some kind of query (which obviously isn't based on
> ID) and do the delete from there?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message