ElasticSearch refresh_interval


(Sumit Gupta) #1

Hi,

I am running doing bulk indexing on my index.At the same index i doing two Aggregation query in every 30 Sec.But i found hits are not coming proper.So do i need to put refresh_interval on my index or any other clue.(I am accepting hits should be same every time because some time it is coming proper).

Query Response:

"took" : 5,
"timed_out" : false,
"_shards" : {
"total" : 20,
"successful" : 20,
"failed" : 0
},
"hits" : {
"total" : 8270,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"TermRCAgg" : {
"buckets" : [ {
"key" : 0,
"doc_count" : 7267
}, {
"key" : 3,
"doc_count" : 913
}, {
"key" : 4,
"doc_count" : 90
} ]
}
}
}

"took" : 6,
"timed_out" : false,
"_shards" : {
"total" : 20,
"successful" : 20,
"failed" : 0
},
"hits" : {
"total" : 8272,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"DiagAgg" : {
"buckets" : [ {
"key" : 16,
"doc_count" : 7380
}, {
"key" : 19,
"doc_count" : 206
}, {
"key" : 31,
"doc_count" : 199
}, {
"key" : 41,
"doc_count" : 117
}, {
"key" : 115,
"doc_count" : 114
}, {
"key" : 113,
"doc_count" : 84
}, {
"key" : 114,
"doc_count" : 84
}, {
"key" : 17,
"doc_count" : 47
}, {
"key" : 112,
"doc_count" : 22
}, {
"key" : 21,
"doc_count" : 14
} ]
}
}
}

Thanks,
Sumit Gupta


(system) #2