I use elasticsearch head plugin to search, as this:
{ "query": { "filtered": { "filter": { "script": { "script": "doc["indexTime"].value < param1", "params" : { "param1" : 80 } } }, "query": { "match_all": {} } } } }
It doesn't work, returns all the data in the index, doesn't filter the result, what's wrong? tks!