elasticsearch
elasticsearch copied to clipboard
How to use for nested query?
I have query like following...
{ "nested" : { "path" : "features", "query" : { "bool": { "should": [ { "match": { "features.Brand": "Louis Philippe" }}, { "match": { "features.Brand": "Allen Solly" }}, { "match": { "features.Occasion": "Casual" }}
]
}
}
}
}
following php code it not working...
$this->searchParams['body']['query']['bool']['should'][]['match']['features.Brand'] = $value;