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();