elasticsearch 2.1.1,
index:
"_source":{"env" : {"flash": 1 }, "index_name" : "2016-01", "user" : { "geo" : { "country" : "ZZ" } } }
curl -XPOST http://127.0.0.1:9200/test/_search?pretty=1 -d' { "query" : { "bool": { "filter": { "term" : { "env.flash" : 1 } } } } }
return some results,
but request
curl -XPOST http://127.0.0.1:9200/test/_search?pretty=1 -d' { "query" : { "bool": { "filter": { "term" : { "user.geo.country" : "ZZ" } } } } }
or
curl -XPOST http://127.0.0.1:9200/test/_search?pretty=1 -d' { "query" : { "bool": { "filter": { "index_name" : "2016-01" } } } }
return empty results. Why ?