How to improve accuracy of aggregation doc_count


(Tim Patton) #1

Elasticsearch documentation states that doc_counts are approximate and we are seeing count discrepancies in our aggregations. This is a big issue for our customers How can we improve the accuracy of the doc_count in nested documents?

Elasticsearch v6.1.1

Following is my search query:
{
"from": 0,
"size": 10,
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "*"
}
},
{
"siteGuid.keyword": "d4908c7d-fc14-4aaf-b85d-8dc1bafd7cfd"
}
}
]
}
},
"aggs": {
"--CUSTOM--": {
"nested": {
"path": "binning.binningSets"
},
"aggs": {
"--Binning--": {
"terms": {
"field": "binning.binningSets.label",
"size": 100,
"order": { "_key" : "asc"}
},
"aggs": {
"--Bin Set--": {
"nested": {
"path": "binning.binningSets.bins"
},
"aggs": {
"--Bins--": {
"terms": {
"field": "binning.binningSets.bins.token",
"size":100,
"order": { "_key" : "asc"}
}
}
}
}
}
}
}
}
}
}

Thank you!


(system) #2

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