# Percolator and has\_parent filter

**URL:** https://discuss.elastic.co/t/percolator-and-has-parent-filter/9547
**Category:** Elasticsearch
**Created:** [November 4, 2012, 1:00pm UTC](https://discuss.elastic.co/t/percolator-and-has-parent-filter/9547 "2012-11-04T13:00:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![samuel\_merlet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samuel_merlet/32/2656_2.png) [@samuel\_merlet](https://discuss.elastic.co/u/samuel_merlet)
#### Post date: [November 4, 2012, 1:00pm UTC](https://discuss.elastic.co/t/percolator-and-has-parent-filter/9547/1 "2012-11-04T13:00:19Z")

</div>

Is it possible to use Has\_parent filter in a percolator ? I always have  
erros while i'm trying to create one that contains such a filter .

Is there any solutions ? Where can i found a good documentation about what  
is possible to do or not with percolator ?

thanks

--

---

<div class="post-metadata">

### Author: ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)
#### Post date: [November 6, 2012, 8:54am UTC](https://discuss.elastic.co/t/percolator-and-has-parent-filter/9547/2 "2012-11-06T08:54:54Z")

</div>

Hello Samuel,

For me at least, has\_child query or filter doesn't work with  
percolator, either. I get this on 0.19.11:

{"error":"ElasticSearchException[failed to parse query [kuku2]];  
nested: ","status":500}

With 0.20.0.RC1, I get a similar exception.

As for documentation, I couldn't find exactly what you can do with  
percolator, although there's this hint in the code about nested docs:

[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/percolator/PercolatorExecutor.java#L294](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/percolator/PercolatorExecutor.java#L294)

Mind you, I don't know if this has something to do the failure for  
has\_parent/has\_child filters. I could register a percolator with a  
nested query without getting an error, although it doesn't seem to  
work as expected.

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

On Sun, Nov 4, 2012 at 3:00 PM, samuel merlet [samuel.merlet@gmail.com](mailto:samuel.merlet@gmail.com) wrote:

> Is it possible to use Has\_parent filter in a percolator ? I always have  
> erros while i'm trying to create one that contains such a filter .
> 
> Is there any solutions ? Where can i found a good documentation about what  
> is possible to do or not with percolator ?
> 
> thanks
> 
> --

--

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [November 6, 2012, 9:01pm UTC](https://discuss.elastic.co/t/percolator-and-has-parent-filter/9547/3 "2012-11-06T21:01:00Z")

</div>

Percolator doesn't support queries and filters that run against nested and  
child/parent documents. The has\_child, has\_parent, top\_children, and nested  
queries and has\_child, has\_parent, and nested filters are not supported at  
this moment. I would expect everything else to work.

On Tuesday, November 6, 2012 3:55:07 AM UTC-5, Radu Gheorghe wrote:

> Hello Samuel,
> 
> For me at least, has\_child query or filter doesn't work with  
> percolator, either. I get this on 0.19.11:
> 
> {"error":"ElasticSearchException[failed to parse query [kuku2]];  
> nested: ","status":500}
> 
> With 0.20.0.RC1, I get a similar exception.
> 
> As for documentation, I couldn't find exactly what you can do with  
> percolator, although there's this hint in the code about nested docs:
> 
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/percolator/PercolatorExecutor.java#L294](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/percolator/PercolatorExecutor.java#L294)
> 
> Mind you, I don't know if this has something to do the failure for  
> has\_parent/has\_child filters. I could register a percolator with a  
> nested query without getting an error, although it doesn't seem to  
> work as expected.
> 
> ## Best regards, Radu
> 
> [http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene
> 
> On Sun, Nov 4, 2012 at 3:00 PM, samuel merlet \<[samuel...@gmail.com](mailto:samuel...@gmail.com)\<javascript:\>\>  
> wrote:
> 
> > Is it possible to use Has\_parent filter in a percolator ? I always have  
> > erros while i'm trying to create one that contains such a filter .
> > 
> > Is there any solutions ? Where can i found a good documentation about  
> > what  
> > is possible to do or not with percolator ?
> > 
> > thanks
> > 
> > --

--

---

<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, 3:05am UTC](https://discuss.elastic.co/t/percolator-and-has-parent-filter/9547/4 "2017-07-06T03:05:52Z")

</div>


