Hi
Can anyone tell me the solution of deleting all the records in the index without effecting the schema(index).
Hi
Can anyone tell me the solution of deleting all the records in the index without effecting the schema(index).
The slow way is with delete by query. It'll work. The fast way is to delete
the index and recreate it. The best way to do that without any time where
the index doesn't exist is to create a new index and swap an alias from the
old index to the new index. You have to be using an alias for the old
index, but that is a useful practice anyway.
© 2020. All Rights Reserved - Elasticsearch
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.