clintongormley / Elastic-Model

Use ElasticSearch as a NoSQL database in Perl
9 stars 8 forks source link

Filterb with "script" #44

Closed xescugc closed 7 years ago

xescugc commented 7 years ago

Is there a way to use filterb with script? I can use it with filter but not with filterb. The script is something like this

{
  "script": {
    "script": "doc['field'].values.size()>1"
  }
}
xescugc commented 7 years ago

Nothing, found the solution deep on the docs 👍 What disoriented me was the error which was Unknown filter operator 'script' hehe.