You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the response to also have doc_count_error_upper_bound and sum_other_doc_count fields when there are documents which are not covered by by the buckets returned, as is done with term aggregation.
What is your host/environment?
AWS OpenSearch Service 2.5
Do you have any screenshots?
n/a
Do you have any additional context?
no
The text was updated successfully, but these errors were encountered:
I believe those parameters are part of term aggregation. Geo hex aggregation will consider all documents unlike terms where you can use size parameter to list only top buckets. This is consistent with other geo aggregation types like geo hash and geo tile
geohex_grid also has a size parameter per the documentation, which defaults to 10000, so this is exactly like terms.
The geoaggregations should be consistent with terms, since they're just another type of bucket value. Not having these fields, especially sum_other_doc_count, limits the usefulness of geoaggregations, since you have to use a heuristic (bucket count is exactly 10000) to determine if there were documents that are not represented in the bucket values and you'd have to run separate count of determine how many documents were not represented.
@philvarner You are absolutely right. Thanks for detailed explanation and reporting this bug, we will look into this issue. However, feel free to contribute if you know how to fix this issue.
@nknize This is not available with other geo aggregations like geo_hash and geo_tile. I believe this can be added to BaseGeoGrid, so that all geo aggregations can inherit this value in response. Do you see an issue in enabling this feature for geo aggregations conceptually? Please share your feedback. Thanks
What is the bug?
geohex_grid
aggregation results missingdoc_count_error_upper_bound
andsum_other_doc_count
fields.How can one reproduce the bug?
centroid
in the example below).The response is like:
What is the expected behavior?
I would expect the response to also have
doc_count_error_upper_bound
andsum_other_doc_count
fields when there are documents which are not covered by by the buckets returned, as is done with term aggregation.What is your host/environment?
AWS OpenSearch Service 2.5
Do you have any screenshots?
n/a
Do you have any additional context?
no
The text was updated successfully, but these errors were encountered: