I am new to Kibana world. I am trying to filter nested document on dashboard, it doesn't get filter because on dashboard when I click on any of the visualization value it applies filter query as shown below. I would like to know how can I get nested document filter on dashboard? Below is the mapping file and few sample documents of my use case.
Thanks in advance,
Ankit
PUT /usr
{
"mappings": {
"usr": {
"properties": {
"first_name": {
"type": "string",
"index": "not_analyzed"
},
"last_name": {
"type": "string",
"index": "not_analyzed"
},
"moniker": {
"include_in_parent": true,
"properties": {
"first_name": {
"type": "string",
"index": "not_analyzed"
},
"last_name": {
"type": "string",
"index": "not_analyzed"
}
},
"type": "nested"
}
}
}
}
}
PUT /usr/usr/1
{
"first_name" : "Timothy",
"last_name" : "Parker",
"moniker" : [
{
"first_name" : "Tim",
"last_name" : "Parker"
},
{
"first_name" : "Tom",
"last_name" : "Park"
}
]
}
PUT /usr/usr/2
{
"first_name" : "James",
"last_name" : "Pecker",
"moniker" : [
{
"first_name" : "Jim",
"last_name" : "Peck"
},
{
"first_name" : "Jane",
"last_name" : "Park"
}
]
}
PUT /usr/usr/3
{
"first_name" : "Thomas",
"last_name" : "Watson",
"moniker" : [
{
"first_name" : "Tom",
"last_name" : "Watson"
},
{
"first_name" : "Jim",
"last_name" : "Watt"
}
]
}
PUT /usr/usr/4
{
"first_name" : "Jane",
"last_name" : "Knightly",
"moniker" : [
{
"first_name" : "Jenny",
"last_name" : "Watt"
},
{
"first_name" : "Jane",
"last_name" : "Park"
}
]
}
PUT /usr/usr/5
{
"first_name" : "Bill",
"last_name" : "Knightly",
"moniker" : [
{
"first_name" : "Bob",
"last_name" : "Watt"
},
{
"first_name" : "Bobby",
"last_name" : "Park"
}
]
}
BEFORE APPLYING FILTER
AFTER APPLYING FILTER