# Percolator on nested object shard failure

**URL:** https://discuss.elastic.co/t/percolator-on-nested-object-shard-failure/17368
**Category:** Elasticsearch
**Created:** [May 6, 2014, 12:19pm UTC](https://discuss.elastic.co/t/percolator-on-nested-object-shard-failure/17368 "2014-05-06T12:19:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![razafinr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/razafinr/32/45334_2.png) [@razafinr](https://discuss.elastic.co/u/razafinr)
#### Post date: [May 6, 2014, 12:19pm UTC](https://discuss.elastic.co/t/percolator-on-nested-object-shard-failure/17368/1 "2014-05-06T12:19:54Z")

</div>

Hi!

I am using elasticsearch 1.1.

Normally in this version, percolator on nested documents should work.

Although, i am trying to do this but I get the following error:

failures: [

```
    { 
        index: test 
        shard: 4 
        reason: BroadcastShardOperationFailedException[[test][4] ];nested

```

: PercolateException[failed to percolate]; nested:  
ElasticsearchIllegalArgumentException[Nothing to percolate];  
}

```
] 

```

I have the following percolator (sorry elasticsearch head removed me all  
the quotes):

{

```
    _index: test 
    _type: .percolator 
    _id: 27 
    _version: 1 
    _score: 1 
    _source: { 
        query: { 
            filtered: { 
                query: { 
                    match_all: { } 
                } 
                filter: { 
                    nested: { 
                        filter: { 
                            term: { 
                                city: london 
                            } 
                        } 
                        path: location 
                    } 
                } 
            } 
        } 
    } 

} 

```

And while trying to percolate this document I am getting the error:

{  
...  
"location": {  
"date": "2014-05-05T15:07:58",  
"namedplaces": {  
"city": "london"  
}  
}  
}

Any idea why it doesn't work ?

**EDIT :**

In elasticsearch log I got more precision about the error:

[2014-05-06 13:33:48,972][DEBUG][action.percolate] [Tomazooma] [  
test][2], node[H42BBxajRs2w2NmllMnp7g], [P], s[STARTED]: Failed to execute [  
org.elasticsearch.action.percolate.PercolateReque  
st@7399452e]  
org.elasticsearch.percolator.PercolateException: failed to percolate  
at org.elasticsearch.action.percolate.TransportPercolateAction.  
shardOperation(TransportPercolateAction.java:198)  
at org.elasticsearch.action.percolate.TransportPercolateAction.  
shardOperation(TransportPercolateAction.java:55)  
at org.elasticsearch.action.support.broadcast.  
TransportBroadcastOperationAction$AsyncBroadcastAction$2.run(  
TransportBroadcastOperationAction.java:226)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(  
ThreadPoolExecutor.java:1145)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(  
ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:744)  
Caused by: org.elasticsearch.ElasticsearchIllegalArgumentException:  
Nothing to percolate  
at org.elasticsearch.percolator.PercolatorService.percolate(  
PercolatorService.java:187)  
at org.elasticsearch.action.percolate.TransportPercolateAction.  
shardOperation(TransportPercolateAction.java:194)  
... 5 more

--  
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/8ba57859-5da2-4349-85a8-de0087623ad0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ba57859-5da2-4349-85a8-de0087623ad0%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: [May 9, 2014, 10:18am UTC](https://discuss.elastic.co/t/percolator-on-nested-object-shard-failure/17368/2 "2014-05-09T10:18:40Z")

</div>

You would only get this error if the "doc" part in the request body is  
missing of the percolate request. Can you share the entire percolate  
request?

On 6 May 2014 18:54, razafinr [raz.rado@gmail.com](mailto:raz.rado@gmail.com) wrote:

> I am using elasticsearch 1.1.
> 
> Normally in this version, percolator on nested documents should work.
> 
> Although, i am trying to do this but I get the following error:
> 
> ```
> failures: [
> 
> {
> index: test
> shard: 4
> reason: BroadcastShardOperationFailedException[[test][4] ];
> 
> ```
> 
> nested: PercolateException[failed to percolate]; nested:  
> ElasticsearchIllegalArgumentException[Nothing to percolate];  
> }
> 
> ```
> ]
> 
> ```
> 
> I have the following percolator (sorry elasticsearch head removed me all  
> the  
> quotes):
> 
> ```
> {
> 
> _index: test
> _type: .percolator
> _id: 27
> _version: 1
> _score: 1
> _source: {
> query: {
> filtered: {
> query: {
> match_all: { }
> }
> filter: {
> nested: {
> filter: {
> term: {
> city: london
> }
> }
> path: location
> }
> }
> }
> }
> }
> 
> }
> 
> ```
> 
> And while trying to percolate this document I am getting the error:
> 
> ```
> {
> ...
> "location": {
> "date": "2014-05-05T15:07:58",
> "namedplaces": {
> "city": "london"
> }
> }
> }
> 
> ```
> 
> Any idea why it doesn't work ?
> 
> **EDIT :**
> 
> In elasticsearch log I got more precision about the error:
> 
> ```
> [2014-05-06 13:33:48,972][DEBUG][action.percolate] [Tomazooma]
> 
> ```
> 
> [test][2], node[H42BBxajRs2w2NmllMnp7g], [P], s[STARTED]: Failed to execute  
> [org.elasticsearch.action.percolate.PercolateReque  
> st@7399452e]  
> org.elasticsearch.percolator.PercolateException: failed to percolate  
> at
> 
> org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:198)  
> at
> 
> org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:55)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$AsyncBroadcastAction$2.run(TransportBroadcastOperationAction.java:226)  
> at
> 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at
> 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:744)  
> Caused by: org.elasticsearch.ElasticsearchIllegalArgumentException:  
> Nothing to percolate  
> at
> 
> org.elasticsearch.percolator.PercolatorService.percolate(PercolatorService.java:187)  
> at
> 
> org.elasticsearch.action.percolate.TransportPercolateAction.shardOperation(TransportPercolateAction.java:194)  
> ... 5 more
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Percolator-on-nested-object-shard-failure-tp4055428.html](http://elasticsearch-users.115913.n3.nabble.com/Percolator-on-nested-object-shard-failure-tp4055428.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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/1399377263852-4055428.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1399377263852-4055428.post%40n3.nabble.com)  
> .  
> 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%2BA76TyHRtODkN\_a9ynxB4r6a71%3D5BdrzGiVJEmLabpZC%2BO5ew%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BA76TyHRtODkN_a9ynxB4r6a71%3D5BdrzGiVJEmLabpZC%2BO5ew%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![razafinr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/razafinr/32/45334_2.png) [@razafinr](https://discuss.elastic.co/u/razafinr)
#### Post date: [May 13, 2014, 3:24pm UTC](https://discuss.elastic.co/t/percolator-on-nested-object-shard-failure/17368/3 "2014-05-13T15:24:25Z")

</div>

Thanks it was the problem. My query was missing the "doc" field.

---

<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, 1:29am UTC](https://discuss.elastic.co/t/percolator-on-nested-object-shard-failure/17368/4 "2017-07-06T01:29:45Z")

</div>


