elastic/elasticsearch-java

TermsBucketBase: doc_count_error should be doc_count_error_upper_bound

stures opened this issue · 1 comments

Java API client version

8.13

Java version

21

Elasticsearch Version

8.13

Problem description

In the TermsBucketBase here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_per_bucket_document_count_error

The returned field is specified to doc_count_error_upper_bound

but the client expects: doc_count_error

op.add(AbstractBuilder::docCountError, JsonpDeserializer.longDeserializer(), "doc_count_error");

This causes errors when using this request

Hello! Thank you for reporting this, I'm getting a different error so I'll have to investigate this a bit more, but something is definitely not working.