wenever i update by re-indexing the previous docs are marked as deleted docs. how to delete those docs?
Thats how Lucene works. Deleted docs are just marked as deleted, and
eventually gets expunged when internal index segments gets merged. This can
be explicitly invoked using the optimized API:
Note the special flag of only_expunge_deletes which only optimizes segments
that have deletes.
As a side note, optimize is a heavy operation. If you end up deleting a
large potion of your index when you reindex, you might as well create a new
index under a different name, do then reindexing into it, and then delete
the old index. You can use index aliases to do this seamlessly (
from other searches. Not sure if this is what you are trying to do, but
On Fri, Apr 23, 2010 at 6:11 PM, megAmin email@example.com wrote:
wenever i update by re-indexing the previous docs are marked as deleted
how to delete those docs?
View this message in context:
Sent from the ElasticSearch Users mailing list archive at Nabble.com.