elastic / elasticsearch

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

INLINESTATS from a different index #111453

Open nik9000 opened 1 month ago

nik9000 commented 1 month ago

Description

It'd be super useful if INLINESTATS could take an index pattern and run it's first phase - the STATS phase - against that pattern instead of the pattern in the query. I think such a thing is possible and it's useful for things like reading from a summary index. I mean, in an ideal world summary index stuff would be automatic, but incremental improvement seems possible here.

elasticsearchmachine commented 1 month ago

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