Hello,
I have the sample data below and i want to know if is it possible to make a Terms aggregation in Kibana by the field "codigo", but showing on the chart the field "nome".
For example, with the sample data below if we made that terms aggregation counting the number of records the result will be:
Maria do Joao - 1
Maria do Joao - 1
Maria do Joao - 1
Joaozinho da Maria - 1
Joaozinho da Maria - 1
When i made the terms aggregation in Kibana with the field "nome", the result is below, since the field "nome" has the same value.
Maria do Joao - 3
Joaozinho da Maria - 2
May you guys help me?
Thanks in advance!
Sample data:
PUT teste/_doc/1
{
"codigo" : "0001"
"nome" : "Maria do Joao"
"tipo_parceiro" : "GOLD"
}
PUT teste/_doc/2
{
"codigo" : "0002"
"nome" : "Maria do Joao"
"tipo_parceiro" : "GOLD"
}
PUT teste/_doc/3
{
"codigo" : "0003"
"nome" : "Maria do Joao"
"tipo_parceiro" : "GOLD"
}
PUT teste/_doc/4
{
"codigo" : "0004"
"nome" : "Joaozinho da Maria"
"tipo_parceiro" : "VIP"
}
PUT teste/_doc/5
{
"codigo" : "0005"
"nome" : "Joaozinho da Maria"
"tipo_parceiro" : "VIP"
}