Deleted index docs coming back automatically

Hi,
I'm using elasticsearch 1.3.
I'm trying to delete older docs with delete by query java api.
I'm able to delete, its showing deleted and I'm seeing no docs in kibana.
But after few seconds its automatically coming back.
can anyone help me to understand the cause?
Do I need additional settings?

I'm using the followings:

QueryBuilder qb = QueryBuilders
                        .rangeQuery("@timestamp")
                        .lte("now-180d");

DeleteByQueryResponse response = client.prepareDeleteByQuery(index)
                        .setQuery(QueryBuilders.boolQuery().must(qb))
                        .setTypes("logs")
                        .setReplicationType(ReplicationType.ASYNC)
                        .execute()
                        .actionGet();

Thanks

Is it still the case if you wait for some minutes? I mean that may be it's caused by refresh?

Why did you set ASYNC?

And please upgrade. 1.x is EOL.

Thanks for your reply,
But I figured out the problem, It was causing by logstash.
Logstash was reading large amount of 1 file like 123GB of log data and was pushing to elasticsearch.
After delete that log file from other server and restart that application my problem was resolved.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.