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)?