Api to trunkate index

Is anything exist to effectively and quickly delete all index data without deleting settimgs, mappings, aliases etc. so the index can be immediately reloaded

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello Alex,

You can use delete by query:

It's not necessarily fast, though. It has to run the query, then delete all
docs from there, which effectively just marks them as deleted, then
expunges them during merging.

It should be much faster to just backup settings, mappings, aliases, etc,
then remove the index completely and recreate it.

This is all due to the way Elasticsearch (or rather, Lucene) works. It
stores data in segments, which are immutable. So you're always better off
deleting the whole thing and recreating, than to work with individual
documents.

On Thu, Jul 4, 2013 at 8:16 AM, AlexR roytmana@gmail.com wrote:

Is anything exist to effectively and quickly delete all index data without
deleting settimgs, mappings, aliases etc. so the index can be immediately
reloaded

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Exactly my point. It would be nice to have truncate index api to quickly drop and reinitialize lucene files leaving all index definitions in place. Very handy when reloading index data

--
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.
For more options, visit https://groups.google.com/groups/opt_out.