Is anything exist to effectively and quickly delete all index data without deleting settimgs, mappings, aliases etc. so the index can be immediately reloaded
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.
Is anything exist to effectively and quickly delete all index data without
deleting settimgs, mappings, aliases etc. so the index can be immediately
reloaded
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.