I'm unable to retrieve results using a filter on the field called "series":
This search returns 92 results:
GET /foos/Thing/_search
{
"query": {
"filtered": {
"query": {
"term": {
"entityId": {
"value": "105595155"
}
}
},
"filter": {
"exists": {
"field": "series"
}
}
}
}
}
The documents look like this:
{
"_index": "foos",
"_type": "Thing",
"_id": "AU8pQXuqCDS84EhJEeld",
"_score": 9.216088,
"_source": {
"metadata": {},
"lastTimestamp": "2015-04-01T19:49:07.000Z",
"series": "foo",
"lastNormalizedTimestamp": "2015-04-01T19:49:07.000Z",
"normalizedTimestamp": "2015-04-01T19:49:07.000Z",
"entityId": "105595155",
"value": 8,
"timestamp": "2015-04-01T19:49:07.000Z"
}
},
This search, however, returns 0 results:
GET /foos/Thing/_search
{
"query": {
"filtered": {
"query": {
"term": {
"entityId": {
"value": "105595155"
}
}
},
"filter": {
"term": {
"series": "foo"
}
}
}
}
}
For the life of me, I haven't figured out why I can't retrieve results with a specific value in the "series" field.
Do you know why?