Good afternoon! Thanks for such a wonderful product! There is the following question:
how it is possible to implement filtering of nested objects depending on the values of the parent nested object.
For example, there is the following mapping:
'properties' => [
'Link' => [
'type' => 'text'
],
'Dates' => [
'type' => 'nested',
'properties' => [
'Date' => [
'type' => 'date',
'format' => 'yyyy-MM-dd'
],
'Cities' => [
'type' => 'nested',
'properties' => [
'CityID' => [
'type' => 'long'
],
'Statuses' => [
'type' => 'nested',
'properties' => [
'StatusID' => [
'type' => 'long'
]
]
]
]
]
]
]
]
There is a document:
'Link' => "http://...",
'Dates' => [{
'Date' => '2020-02-20',
'Cities' => [{
'CityID' => 1,
'Statuses' => [
{
'StatusID' => 1
},
{
'StatusID' => 2
}
]
}]
]}
How can I remove StatusID => 2 from inner_hits if CityID => 1?
if CityID <> 1, then do not remove anything
Thanks in advance!!!