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 ?