When I use "nested" query, is it possible to somehow see which specific nested objects matched the query? E.g., suppose I have Streets nested under City, and I run a query:
{
"query": {
"nested": {
"path": "streets",
"query": {
"wildcard": {
"streets.name": { "value": "*market*" }
}
}
}
}
}
The query gives me cities that have a street matching *market*
. Is it possible to also get the name and the id of the street that matched for each of the returned cities?