Native script use case

in elasticsearch 5.4, the following inline query works:

   "query": {
      "bool": {
         "filter": {
            "script": {
               "script": "def match = true; return match;"

suppose that a custom condition is used instead of true.

is it possible to write the same query using native script (java plugin)?

I used the query script and it worked. sorry.

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