Select into new docs

Hi all.

Is there a way to create a document(s) from the result of a query?
I have a query doing some filtering and a scripted_metric , returning a large amount of data that I would like to insert as new data set.

The query returns quickly , but having to stream the data out and then back into ES takes too long. (I need to run this ad hoc from a frontend).

I cant use the rollup-api as it doesnt support scripted metrics (and the 'special indexes' it creates)...also, the reindex api doesnt seem to support any aggregations.

Any other ideas ?

(Using ES 7.5)

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