0
I need to add fields different and join them in a single field on the return of the Elasticsearch (search in POST mode), but I only know the way distinctly sum each field, as follows:
"aggs" : {
"soma1" : { "sum" : { "field" : "consulta.campo.quantidade" } },
"soma2" : { "sum" : { "field" : "solicitacao.campo.quantidade" } },
"soma3" : { "sum" : { "field" : "anexo.campo.quantidade" } }
}
Precise join together the sum of three aggregations up. That’s it.
Thanks for the help!
This was the field I needed. Thank you!
– Thiago Sperandio