Any way to write the results of scripted bucket aggregations to a new index within elasticsearch itself?

Hi,

Is there any way to do scripted bucket aggregations against existing indexes and write the results to a new index within elasticsearch itself? Like some way to combine the scripted bucket aggregations with the reindex API?

Thanks,
Casie

There's no way to do this using Elasticsearch alone. You can use X-Pack's search input (https://www.elastic.co/guide/en/x-pack/current/input-search.html) to define a query and then an index action (https://www.elastic.co/guide/en/x-pack/current/actions-index.html) to insert the result back into an index.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.