You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this has anything to do with the field names being the same, since the type of both are string. I believe this is related to #8872. Can you change your term query to use cast.title as the field and see if it works?
Indeed it works with "cast.title". Does it mean that a full path must be used in the term despite the fact that there's also a path specified one level higher?
{
"mappings": {
"movie": {
"properties": {
"cast": {
"type": "nested"
}
}
}
}
}
{
"title": "The Matrix",
"cast": [
{
"title": "test"
}
]
}
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"nested": {
"path": "cast",
"filter": {
"term": {
"title": "test"
}
}
}
}
}
}
}
no result found -> bug
It works if nested object uses different field name rather then 'title'
The text was updated successfully, but these errors were encountered: