Is there a method of deleting all entries in a specific type in an Index without deleting the whole type and also preserving the mapping for that type? I want to clear out a type without having to reindex or remove the type. Is this possible? I've tried variations of match_all and wildcard queries and haven't had any luck.
Right now I'm trying
curl -XDELETE 'http://localhost:9200/index/type/_query?q=_id:*', and it seems to return successful in the terminal window, but doesn't actually delete the entries in my type.
Is there a method of deleting all entries in a specific type in an Index
without deleting the whole type and also preserving the mapping for that
type? I want to clear out a type without having to reindex or remove the
type. Is this possible? I've tried variations of match_all and wildcard
queries and haven't had any luck.
Right now I'm trying
curl -XDELETE 'http://localhost:9200/index/type/_query?q=_id:*', and it
seems to return successful in the terminal window, but doesn't actually
delete the entries in my type.
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.