0

I have an index with 10M documents with nearly 1M unique names and 20 shards, when I use terms aggregation it produces an approximate aggregation result as an CURL request, but when I try to replicate the approximation in REST high level client in Java, it produces accurate aggregation results.

Is there any way to replicate the approximate aggregation results using the REST hlc? Thanks.

achieved in Elasticsearch-head plugin - shows 7 instead of 13, actual count in kibana

3
  • what do you mean by accurate and approximate? Commented Sep 29, 2021 at 7:42
  • Approximate count of occurrence of an word in an document, when using terms aggregation, I'll add images to explain. Commented Sep 29, 2021 at 7:57
  • you're running an aggregation in one screenshot and a terms filter in another though, so it'd be better to use the same query in both approaches Commented Sep 30, 2021 at 0:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.