# Percolator filtering not working?

**URL:** <https://discuss.elastic.co/t/percolator-filtering-not-working/21933>\
**Category:** Elasticsearch\
**Created:** [January 30, 2015, 10:32pm UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933 "2015-01-30T22:32:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Addison](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@James\_Addison](https://discuss.elastic.co/u/James_Addison)\
**Post date:** [January 30, 2015, 10:32pm UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/1 "2015-01-30T22:32:33Z")

</div>

Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?

percolator mapping:

{  
"activities-20150107-162224": {  
"mappings": {  
".percolator": {  
"\_id": {  
"index": "not\_analyzed"  
},  
"properties": {  
"doc\_type": {  
"type": "string"  
},  
"query": {  
"type": "object",  
"enabled": false  
}  
}  
}  
}  
}  
}

percolator query doc:

{  
"\_index": "activities-20150107-162224",  
"\_type": ".percolator",  
"\_id": "tagrule-1",  
"\_version": 2,  
"found": true,  
"\_source": {  
"query": {  
"query\_string": {  
"fields": [  
"name",  
"description"  
],  
"query": "hockey"  
}  
},  
"doc\_type": "activity"  
}  
}

percolate request that works fine:

GET /activities/activity/\_percolate?percolate\_format=ids  
{  
"doc": {  
"name": "hockey"  
}  
}

filtered percolate request that does NOT work.

GET /activities/activity/\_percolate?percolate\_format=ids  
{  
"doc": {  
"name": "hockey"  
},  
"query": {  
"filtered": {  
"query": {"match\_all": {}},  
"filter": {  
"term": {  
"doc\_type": "activity"  
}  
}  
}  
}  
}

This also does not work:

GET /activities/activity/\_percolate?percolate\_format=ids  
{  
"doc": {  
"name": "hockey"  
},  
"filter": {  
"term": {  
"doc\_type": "activity"  
}  
}  
}

I have done a /\_refresh on the index. ES version is 1.4.2.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9746982d-cdac-474e-8b0d-40996bbb3c3e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9746982d-cdac-474e-8b0d-40996bbb3c3e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_Addison](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@James\_Addison](https://discuss.elastic.co/u/James_Addison)\
**Post date:** [February 3, 2015, 7:50pm UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/2 "2015-02-03T19:50:40Z")

</div>

Nobody knows anything about percolators?

On Friday, January 30, 2015 at 2:32:33 PM UTC-8, James Addison wrote:

> Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?
> 
> percolator mapping:
> 
> {  
> "activities-20150107-162224": {  
> "mappings": {  
> ".percolator": {  
> "\_id": {  
> "index": "not\_analyzed"  
> },  
> "properties": {  
> "doc\_type": {  
> "type": "string"  
> },  
> "query": {  
> "type": "object",  
> "enabled": false  
> }  
> }  
> }  
> }  
> }  
> }
> 
> percolator query doc:
> 
> {  
> "\_index": "activities-20150107-162224",  
> "\_type": ".percolator",  
> "\_id": "tagrule-1",  
> "\_version": 2,  
> "found": true,  
> "\_source": {  
> "query": {  
> "query\_string": {  
> "fields": [  
> "name",  
> "description"  
> ],  
> "query": "hockey"  
> }  
> },  
> "doc\_type": "activity"  
> }  
> }
> 
> percolate request that works fine:
> 
> GET /activities/activity/\_percolate?percolate\_format=ids  
> {  
> "doc": {  
> "name": "hockey"  
> }  
> }
> 
> filtered percolate request that does NOT work.
> 
> GET /activities/activity/\_percolate?percolate\_format=ids  
> {  
> "doc": {  
> "name": "hockey"  
> },  
> "query": {  
> "filtered": {  
> "query": {"match\_all": {}},  
> "filter": {  
> "term": {  
> "doc\_type": "activity"  
> }  
> }  
> }  
> }  
> }
> 
> This also does not work:
> 
> GET /activities/activity/\_percolate?percolate\_format=ids  
> {  
> "doc": {  
> "name": "hockey"  
> },  
> "filter": {  
> "term": {  
> "doc\_type": "activity"  
> }  
> }  
> }
> 
> I have done a /\_refresh on the index. ES version is 1.4.2.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/29e62092-3023-4acc-951b-78d892cefb30%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/29e62092-3023-4acc-951b-78d892cefb30%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [February 4, 2015, 6:42am UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/3 "2015-02-04T06:42:38Z")

</div>

The index that the percolator query is in is named: '  
activities-20150107-162224', but your are percolating on the `activities`  
index. I think in the activities index there is no `doc_type` field defined  
in the `.percolator` type, so that is why there are no matches. If you you  
use activities\* as index in the percolator call, matches should return.

On 3 February 2015 at 20:50, James Addison [addi00@gmail.com](mailto:addi00@gmail.com) wrote:

> Nobody knows anything about percolators?
> 
> On Friday, January 30, 2015 at 2:32:33 PM UTC-8, James Addison wrote:
> 
> > Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?
> > 
> > percolator mapping:
> > 
> > {  
> > "activities-20150107-162224": {  
> > "mappings": {  
> > ".percolator": {  
> > "\_id": {  
> > "index": "not\_analyzed"  
> > },  
> > "properties": {  
> > "doc\_type": {  
> > "type": "string"  
> > },  
> > "query": {  
> > "type": "object",  
> > "enabled": false  
> > }  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > percolator query doc:
> > 
> > {  
> > "\_index": "activities-20150107-162224",  
> > "\_type": ".percolator",  
> > "\_id": "tagrule-1",  
> > "\_version": 2,  
> > "found": true,  
> > "\_source": {  
> > "query": {  
> > "query\_string": {  
> > "fields": [  
> > "name",  
> > "description"  
> > ],  
> > "query": "hockey"  
> > }  
> > },  
> > "doc\_type": "activity"  
> > }  
> > }
> > 
> > percolate request that works fine:
> > 
> > GET /activities/activity/\_percolate?percolate\_format=ids  
> > {  
> > "doc": {  
> > "name": "hockey"  
> > }  
> > }
> > 
> > filtered percolate request that does NOT work.
> > 
> > GET /activities/activity/\_percolate?percolate\_format=ids  
> > {  
> > "doc": {  
> > "name": "hockey"  
> > },  
> > "query": {  
> > "filtered": {  
> > "query": {"match\_all": {}},  
> > "filter": {  
> > "term": {  
> > "doc\_type": "activity"  
> > }  
> > }  
> > }  
> > }  
> > }
> > 
> > This also does not work:
> > 
> > GET /activities/activity/\_percolate?percolate\_format=ids  
> > {  
> > "doc": {  
> > "name": "hockey"  
> > },  
> > "filter": {  
> > "term": {  
> > "doc\_type": "activity"  
> > }  
> > }  
> > }
> > 
> > I have done a /\_refresh on the index. ES version is 1.4.2.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/29e62092-3023-4acc-951b-78d892cefb30%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/29e62092-3023-4acc-951b-78d892cefb30%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/29e62092-3023-4acc-951b-78d892cefb30%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/29e62092-3023-4acc-951b-78d892cefb30%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CA%2BA76TwiwrKG5mCrpE%3DCzoYhYun2NwmgT5kZBrv40pbsaHoMkg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BA76TwiwrKG5mCrpE%3DCzoYhYun2NwmgT5kZBrv40pbsaHoMkg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_Addison](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@James\_Addison](https://discuss.elastic.co/u/James_Addison)\
**Post date:** [February 4, 2015, 5:19pm UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/4 "2015-02-04T17:19:10Z")

</div>

Hi Martijn,

Thanks for the reply - 'activities' is an alias to '  
activities-20150107-162224', and as I mentioned, percolation without  
percolator filtering works fine - so this should mean that the percolator  
**is** in the index and is accessible via the alias.

So again, I'm not sure why percolator filtering isn't working - as I've  
said, I assume I'm misunderstanding/doing something wrong, but I can't  
figure out just what.

James

On Tuesday, February 3, 2015 at 10:43:14 PM UTC-8, Martijn v Groningen  
wrote:

> The index that the percolator query is in is named: '  
> activities-20150107-162224', but your are percolating on the `activities`  
> index. I think in the activities index there is no `doc_type` field defined  
> in the `.percolator` type, so that is why there are no matches. If you you  
> use activities\* as index in the percolator call, matches should return.
> 
> On 3 February 2015 at 20:50, James Addison \<[add...@gmail.com](mailto:add...@gmail.com) \<javascript:\>
> 
> > wrote:
> 
> > Nobody knows anything about percolators?
> > 
> > On Friday, January 30, 2015 at 2:32:33 PM UTC-8, James Addison wrote:
> > 
> > > Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?
> > > 
> > > percolator mapping:
> > > 
> > > {  
> > > "activities-20150107-162224": {  
> > > "mappings": {  
> > > ".percolator": {  
> > > "\_id": {  
> > > "index": "not\_analyzed"  
> > > },  
> > > "properties": {  
> > > "doc\_type": {  
> > > "type": "string"  
> > > },  
> > > "query": {  
> > > "type": "object",  
> > > "enabled": false  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > percolator query doc:
> > > 
> > > {  
> > > "\_index": "activities-20150107-162224",  
> > > "\_type": ".percolator",  
> > > "\_id": "tagrule-1",  
> > > "\_version": 2,  
> > > "found": true,  
> > > "\_source": {  
> > > "query": {  
> > > "query\_string": {  
> > > "fields": [  
> > > "name",  
> > > "description"  
> > > ],  
> > > "query": "hockey"  
> > > }  
> > > },  
> > > "doc\_type": "activity"  
> > > }  
> > > }
> > > 
> > > percolate request that works fine:
> > > 
> > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > {  
> > > "doc": {  
> > > "name": "hockey"  
> > > }  
> > > }
> > > 
> > > filtered percolate request that does NOT work.
> > > 
> > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > {  
> > > "doc": {  
> > > "name": "hockey"  
> > > },  
> > > "query": {  
> > > "filtered": {  
> > > "query": {"match\_all": {}},  
> > > "filter": {  
> > > "term": {  
> > > "doc\_type": "activity"  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > This also does not work:
> > > 
> > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > {  
> > > "doc": {  
> > > "name": "hockey"  
> > > },  
> > > "filter": {  
> > > "term": {  
> > > "doc\_type": "activity"  
> > > }  
> > > }  
> > > }
> > > 
> > > I have done a /\_refresh on the index. ES version is 1.4.2.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5f4a6319-ed02-4673-8b4f-b7d2966a248c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f4a6319-ed02-4673-8b4f-b7d2966a248c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_Addison](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@James\_Addison](https://discuss.elastic.co/u/James_Addison)\
**Post date:** [February 4, 2015, 5:22pm UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/5 "2015-02-04T17:22:33Z")

</div>

Ah! [Percolator should also take the filter of an alias into account. · Issue #6241 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/6241), your very  
own bug submission, Martijn! I suspect this is the culprit - it's been an  
open issue for some time. At least I know it's not my fault... at the  
moment. 🙂

James

On Wednesday, February 4, 2015 at 9:19:11 AM UTC-8, James Addison wrote:

> Hi Martijn,
> 
> Thanks for the reply - 'activities' is an alias to '  
> activities-20150107-162224', and as I mentioned, percolation without  
> percolator filtering works fine - so this should mean that the percolator  
> **is** in the index and is accessible via the alias.
> 
> So again, I'm not sure why percolator filtering isn't working - as I've  
> said, I assume I'm misunderstanding/doing something wrong, but I can't  
> figure out just what.
> 
> James
> 
> On Tuesday, February 3, 2015 at 10:43:14 PM UTC-8, Martijn v Groningen  
> wrote:
> 
> > The index that the percolator query is in is named: '  
> > activities-20150107-162224', but your are percolating on the  
> > `activities` index. I think in the activities index there is no `doc_type`  
> > field defined in the `.percolator` type, so that is why there are no  
> > matches. If you you use activities\* as index in the percolator call,  
> > matches should return.
> > 
> > On 3 February 2015 at 20:50, James Addison [add...@gmail.com](mailto:add...@gmail.com) wrote:
> > 
> > > Nobody knows anything about percolators?
> > > 
> > > On Friday, January 30, 2015 at 2:32:33 PM UTC-8, James Addison wrote:
> > > 
> > > > Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?
> > > > 
> > > > percolator mapping:
> > > > 
> > > > {  
> > > > "activities-20150107-162224": {  
> > > > "mappings": {  
> > > > ".percolator": {  
> > > > "\_id": {  
> > > > "index": "not\_analyzed"  
> > > > },  
> > > > "properties": {  
> > > > "doc\_type": {  
> > > > "type": "string"  
> > > > },  
> > > > "query": {  
> > > > "type": "object",  
> > > > "enabled": false  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > percolator query doc:
> > > > 
> > > > {  
> > > > "\_index": "activities-20150107-162224",  
> > > > "\_type": ".percolator",  
> > > > "\_id": "tagrule-1",  
> > > > "\_version": 2,  
> > > > "found": true,  
> > > > "\_source": {  
> > > > "query": {  
> > > > "query\_string": {  
> > > > "fields": [  
> > > > "name",  
> > > > "description"  
> > > > ],  
> > > > "query": "hockey"  
> > > > }  
> > > > },  
> > > > "doc\_type": "activity"  
> > > > }  
> > > > }
> > > > 
> > > > percolate request that works fine:
> > > > 
> > > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > > {  
> > > > "doc": {  
> > > > "name": "hockey"  
> > > > }  
> > > > }
> > > > 
> > > > filtered percolate request that does NOT work.
> > > > 
> > > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > > {  
> > > > "doc": {  
> > > > "name": "hockey"  
> > > > },  
> > > > "query": {  
> > > > "filtered": {  
> > > > "query": {"match\_all": {}},  
> > > > "filter": {  
> > > > "term": {  
> > > > "doc\_type": "activity"  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > This also does not work:
> > > > 
> > > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > > {  
> > > > "doc": {  
> > > > "name": "hockey"  
> > > > },  
> > > > "filter": {  
> > > > "term": {  
> > > > "doc\_type": "activity"  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > I have done a /\_refresh on the index. ES version is 1.4.2.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/44cf7fef-4daa-4086-b327-545af7e689bc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/44cf7fef-4daa-4086-b327-545af7e689bc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [February 4, 2015, 8:55pm UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/6 "2015-02-04T20:55:37Z")

</div>

This issue is more about the fact that a filter associated with an alias  
aren't getting applied, which is different than the issue you're  
experiencing (your filter on the percolate request doesn't match with any  
percolator query).

Can you try to run:  
GET /activities/.percolator/\_search  
{  
"query": {  
"term": {  
"doc\_type" : "activity"  
}  
}  
}

This should return the percolator query that should match with your  
percolate request.

And yes, this issue is open for a while already!

On 4 February 2015 at 18:22, James Addison [addi00@gmail.com](mailto:addi00@gmail.com) wrote:

> Ah! [Percolator should also take the filter of an alias into account. · Issue #6241 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/6241), your very  
> own bug submission, Martijn! I suspect this is the culprit - it's been an  
> open issue for some time. At least I know it's not my fault... at the  
> moment. 🙂
> 
> James
> 
> On Wednesday, February 4, 2015 at 9:19:11 AM UTC-8, James Addison wrote:
> 
> > Hi Martijn,
> > 
> > Thanks for the reply - 'activities' is an alias to '  
> > activities-20150107-162224', and as I mentioned, percolation without  
> > percolator filtering works fine - so this should mean that the percolator  
> > **is** in the index and is accessible via the alias.
> > 
> > So again, I'm not sure why percolator filtering isn't working - as I've  
> > said, I assume I'm misunderstanding/doing something wrong, but I can't  
> > figure out just what.
> > 
> > James
> > 
> > On Tuesday, February 3, 2015 at 10:43:14 PM UTC-8, Martijn v Groningen  
> > wrote:
> > 
> > > The index that the percolator query is in is named: '  
> > > activities-20150107-162224', but your are percolating on the  
> > > `activities` index. I think in the activities index there is no `doc_type`  
> > > field defined in the `.percolator` type, so that is why there are no  
> > > matches. If you you use activities\* as index in the percolator call,  
> > > matches should return.
> > > 
> > > On 3 February 2015 at 20:50, James Addison [add...@gmail.com](mailto:add...@gmail.com) wrote:
> > > 
> > > > Nobody knows anything about percolators?
> > > > 
> > > > On Friday, January 30, 2015 at 2:32:33 PM UTC-8, James Addison wrote:
> > > > 
> > > > > Percolation works fine, as long as I don't 'filter' the percolators. Please see below for the scenario. What am I doing wrong?
> > > > > 
> > > > > percolator mapping:
> > > > > 
> > > > > {  
> > > > > "activities-20150107-162224": {  
> > > > > "mappings": {  
> > > > > ".percolator": {  
> > > > > "\_id": {  
> > > > > "index": "not\_analyzed"  
> > > > > },  
> > > > > "properties": {  
> > > > > "doc\_type": {  
> > > > > "type": "string"  
> > > > > },  
> > > > > "query": {  
> > > > > "type": "object",  
> > > > > "enabled": false  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > percolator query doc:
> > > > > 
> > > > > {  
> > > > > "\_index": "activities-20150107-162224",  
> > > > > "\_type": ".percolator",  
> > > > > "\_id": "tagrule-1",  
> > > > > "\_version": 2,  
> > > > > "found": true,  
> > > > > "\_source": {  
> > > > > "query": {  
> > > > > "query\_string": {  
> > > > > "fields": [  
> > > > > "name",  
> > > > > "description"  
> > > > > ],  
> > > > > "query": "hockey"  
> > > > > }  
> > > > > },  
> > > > > "doc\_type": "activity"  
> > > > > }  
> > > > > }
> > > > > 
> > > > > percolate request that works fine:
> > > > > 
> > > > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > > > {  
> > > > > "doc": {  
> > > > > "name": "hockey"  
> > > > > }  
> > > > > }
> > > > > 
> > > > > filtered percolate request that does NOT work.
> > > > > 
> > > > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > > > {  
> > > > > "doc": {  
> > > > > "name": "hockey"  
> > > > > },  
> > > > > "query": {  
> > > > > "filtered": {  
> > > > > "query": {"match\_all": {}},  
> > > > > "filter": {  
> > > > > "term": {  
> > > > > "doc\_type": "activity"  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > This also does not work:
> > > > > 
> > > > > GET /activities/activity/\_percolate?percolate\_format=ids  
> > > > > {  
> > > > > "doc": {  
> > > > > "name": "hockey"  
> > > > > },  
> > > > > "filter": {  
> > > > > "term": {  
> > > > > "doc\_type": "activity"  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > I have done a /\_refresh on the index. ES version is 1.4.2.

--  
Met vriendelijke groet,

Martijn van Groningen

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CA%2BA76Tyoc%2Bp%3DaEsS8en\_7%2BF16\_RUqR4wettF5mM-Vya5yDNQmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BA76Tyoc%2Bp%3DaEsS8en_7%2BF16_RUqR4wettF5mM-Vya5yDNQmA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:34am UTC](https://discuss.elastic.co/t/percolator-filtering-not-working/21933/7 "2017-07-06T00:34:56Z")

</div>


