I have a non-analyzed field in my index. The field in question has mapping:
"ean" : { "index" : "not_analyzed", "type" : "string" }
I verified the mappig is working, i.e., the field isn't analyzed.
The record that is not being returned can be found by searching on another field. It seems that the value of the problematic field also isn't included in _all.
The query I issue is simple:
{'query': {'term': {'ean': '3660619000159'}}}
A filter like so:
{
"query": {
"filtered": {
"filter": {
"term": {
"ean": "3660619000159"
}
},
"query": {
"match_all": {}
}
}
}
}
Also doesn't retrieve anything. Am I missing something obvious? What can cause this behavior? How can I debug this?