elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.61k stars 24.63k forks source link

Aggregation fails silently, returns the default response of 10 docs and hits instead of error #111180

Open lmartelli opened 2 months ago

lmartelli commented 2 months ago

Elasticsearch Version

8.14.1

Installed Plugins

None

Java Version

22.01

OS Version

rocky linux 8.5 (kernel 4.18)

Problem Description

Aggregation query returns 10 docs instead of aggregations when there are lots of documents to aggregate on.

Steps to Reproduce

See https://discuss.elastic.co/t/aggregation-fails-silently-returns-the-default-response-of-10-docs-and-hits-instead-of-error/362872

Logs (if relevant)

No response

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-analytical-engine (Team:Analytics)

lmartelli commented 2 months ago

I tried the same query with curl, as suggested by @iverase and it turns out to be a Kibana issue.