I have an elastic search structure like below
{
"_source": {
"@timestamp": "2017-12-08T16:31:27.106Z",
"@version": "1",
"doc": {
"core": {
"type": "admin",
"component": {
"items": {}
}
}
}
},
"sort": [
1512641620092
]
}
Here the value of type may change, like "advisor" etc, I need a query to fetch all types but for admin all the data where the "component.items" is not blank
SO the result should contain all types + (admin with component.type not blank )
I am new to elastic search please help here.
Thanks in advance for any help