Clear deleted docs

Hi ,

Ideally the enitre set of deleted documents can would be only removed when
you execute a full merge into 1 segment.
But then this eats lots of time if you have a large index.

$ curl -XPOST 'http://localhost:9200/twitter/_optimize?max_num_segments=1'

On using only_expunge_deletes , you are suggesting ES to prioritize those
segments which have higher number of deleted documents while merging. But
then if the merge policy feels it doesnt need to merge any more document ,
it wont perform it.

Thanks
Vineeth Mohan,
Elasticsearch consultant,
qbox.io ( Elasticsearch service provider http://qbox.io/)

On Fri, Mar 13, 2015 at 5:05 PM, Christophe Rosko christophe@digiteka.com
wrote:

Hi !

I have many deleted documents in my index and I'd like to clear them so
that df/ttf statistics aren't skewed by these deleted docs.
I try the following command :
curl -XPOST 'http://localhost:9200/myindex/_optimize?only_
expunge_deletes=true'
But the number of deleted documents is still the same, as I can see using
head plugin.

How can I do to clear these deleted documents ?

Thanks for you help !

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d1dac23e-8d48-4a9b-9883-2f3e3d7e34b2%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/d1dac23e-8d48-4a9b-9883-2f3e3d7e34b2%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kP0yTxtWqHC-%3D7-RFfn4qfrd80RmLaZP83w8SJSaJRwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.