Hello everybody,
Before everything, I´m sorry for my bad english. I´ll try to be clear and brief.
I have a huge problem. I don´t know how can I do my mapping and show in Kibana the following things.
Everyone has name,age,and state that their was born. But each person can have more then one likes.
For example: foods, relax, beach, soccer, etc.
I know that Kibana doesn´t support Array, Nested or Object types. So I´m trying to do it the way I´m showing it down.
This is my mapping
PUT elastic
{
"mappings": {
"person": {
"_all": { "enabled": false },
"properties": {
"name": {"type": "keyword"},
"age" : {"type" : "keyword"},
"state": {"type": "keyword"},
"likes": {"type": "keyword"}
}
}
}
}
PUT elastic/person/1
{
"name": "Mikhael",
"age": "24",
"state": "SP",
"likes": "foods"
}
PUT elastic/person/2
{
"name": "Mikhael",
"age": "24",
"state": "SP",
"likes": "relax"
}
PUT elastic/person/3
{
"name": "James",
"age": "21",
"state": "SP",
"likes": "beach"
}
PUT elastic/person/4
{
"name": "Oliver",
"age": "24",
"state": "RJ",
"likes": "foods"
}
When I try to term in Kibana by age, likes and name. The count is incorrect. How you can see below.
The real value of count is three, not four.
Someone has a light at the end of the tunnel for me.
Thank you