Create a new index with the query's result

Hi,

I want to send the query's result in a new index :

GET myindex/_search
{
  "size" : 0,
  "_source" : false,
  "aggregations" : {
    "groupby" : {
      "composite" : {
        "size" : 1000,
        "sources" : [
          {
            "e2762d6b" : {
              "terms" : {
                "field" : "field1",
                "missing_bucket" : true,
                "order" : "asc"
              }
            }
          },
          {
            "d3aa500c" : {
              "terms" : {
                "field" : "field2",
                "missing_bucket" : true,
                "order" : "asc"
              }
            }
          }
        ]
      }
    }
  }
}

Can you indicate to me how I can do that ?

Hello @Mathieu64,

Welcome to the community!

You would have a separate request for this.

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