I have deleted all the documents of type xxx, by curl -XDELETE localhost:9200/logstash*/xxx
but the above query is still giving me results in elasticsearch.
But if I do search with this: curl -XGET localhost:9200/logstash*/xxx/_search, without request body, there are no results.
Hmm, this is really puzzling. The only idea that I had is that the _type field inside the record doesn't match the real type of the record and it confuses the search engine. If this is not the case, it would be great if you could show how to recreate this problem. Please see https://www.elastic.co/help for some guildlines on how to post a recreation.
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.