Percolator sometimes doesn't refresh queries

(Tomasz Romanczuk) #1

I indexed 100000 queries in percolator index. Next 90000 was deleted.
Sometimes it looks like index didn't refresh (I repeated step many times),
deleted queries are still matched and returned in resposne. I tried to
clear cache and refresh index, but sometimes it doesn't work, my code:

BulkRequestBuilder bulkRequest = client.prepareBulk();
while (some condition) {
bulkRequest.add(client.prepareIndex("_percolator", INDEX_NAME,
while (some condition) {
bulkRequest.add(client.prepareDelete("_percolator", INDEX_NAME, id));
BulkResponse response = bulkRequest.setRefresh(true).execute().actionGet();

How to make sure that after bulk request (response.hasFailures() always
returns false) percolator index will be refreshed?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2