Elasticsearch script doesn't work

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!

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:


May be you used GET verb. IIRC it was not working but POST was.

BTW you should use Kibana console.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.