Restrict percolator call to a type in ElasticSearch Restrict percolator call to a type in ElasticSearch elasticsearch elasticsearch

Restrict percolator call to a type in ElasticSearch


An alternative approach is to wrap your original query into a filtered query and add a terms filter for _type:

{    "query": {        "filtered":{            "query": {                "term":{                    field1" : "value1"                }             },             "filter": {                 "term": {                     "_type" : "type1"                 }              }          }     }}