Delete query [without effecting its schema]


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.