I need to add different fields and merge them into a single field in ElasticSearch search in POST mode in>), but I only know the form that distinctly adds each field, as follows:
"aggs" : {
"soma1" : { "sum" : { "field" : "consulta.campo.quantidade" } },
"soma2" : { "sum" : { "field" : "solicitacao.campo.quantidade" } },
"soma3" : { "sum" : { "field" : "anexo.campo.quantidade" } }
}
I need to join the sum of the three aggregations above. That's it.
Thanks for the help!