# Multi percolate and filtering

**URL:** <https://discuss.elastic.co/t/multi-percolate-and-filtering/26197>\
**Category:** Elasticsearch\
**Created:** [July 24, 2015, 2:48am UTC](https://discuss.elastic.co/t/multi-percolate-and-filtering/26197 "2015-07-24T02:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabx88](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@rabx88](https://discuss.elastic.co/u/rabx88)\
**Post date:** [July 24, 2015, 2:48am UTC](https://discuss.elastic.co/t/multi-percolate-and-filtering/26197/1 "2015-07-24T02:48:32Z")

</div>

Is it possible to apply filters to limit which percolators run during a multi-percolate call with existing documents? I have several types of data and would like to only run percolators that apply to the specific type of document. I store my results in a batch, then call the multi-percolate api with references to those documents. Must I define a type filter within each percolator? The documentation seems to indicate that adding a "type" field to your percolator has some effect on whether the percolator is evaluated, but this does not seem to be the case. Any guidance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![rabx88](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@rabx88](https://discuss.elastic.co/u/rabx88)\
**Post date:** [July 24, 2015, 4:18pm UTC](https://discuss.elastic.co/t/multi-percolate-and-filtering/26197/2 "2015-07-24T16:18:32Z")

</div>

I was able to get this to work by passing a term filter rather than a type filter, which makes sense I suppose. The percolators are all one type so the type filter is not applicable. I guess I was hoping for a special property of a percolator that would ensure that it only runs on a particular type.

```
{"percolate" : {"index" : "twitter", "type" : "tweet", "id" : "1"}}
{"filter" : {"term" : {"priority" : "high"}}}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/multi-percolate-and-filtering/26197/3 "2017-07-05T23:59:12Z")

</div>


