I can't understand why I have no results? Using ES 2.
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"term": {
"technical.techcolor": "red"
}
}
}
}
And here is the info from db that I am searching against.
{"technical":
[{
"techname22": "test",
"techcolor":"red",
"techlocation": "usa"
}],
"audio":
{
"someAudioMetadata": "test"
}
}
Since you have not specified your mapping, I am considering the following mapping.
Mapping:
Search Query:
Search Result:
To know more about nested datatype you can refer to this official documentation and for Query and Filter Context refer this