Elasticsearch script doesn't work


(dd.ho) #1

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!


(David Pilato) #2

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

Or use markdown style like:

```
CODE
```

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

BTW you should use Kibana console.


(system) closed #3

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