# Elastic Search Percolation of Existing document doesn't work

**URL:** <https://discuss.elastic.co/t/elastic-search-percolation-of-existing-document-doesnt-work/54263>\
**Category:** Elasticsearch\
**Created:** [June 29, 2016, 10:48am UTC](https://discuss.elastic.co/t/elastic-search-percolation-of-existing-document-doesnt-work/54263 "2016-06-29T10:48:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nisar\_Adappadathil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nisar_adappadathil/32/13224_2.png) [@Nisar\_Adappadathil](https://discuss.elastic.co/u/Nisar_Adappadathil)\
**Post date:** [June 29, 2016, 10:48am UTC](https://discuss.elastic.co/t/elastic-search-percolation-of-existing-document-doesnt-work/54263/1 "2016-06-29T10:48:26Z")

</div>

Elastic Search Percolation of Existing document doesn't work.  
I tries the below example.  
Indexed the below document.  
POST [http://localhost:9200/abc/cand/230](http://localhost:9200/abc/cand/230)  
{  
"doc": {  
"message":"Java C# Bangalore"   
}  
}

Indexed the below query  
POST [http://localhost:9200/abc/.percolator/2702](http://localhost:9200/abc/.percolator/2702)  
{  
"query" : {  
"match" : {  
"message" : "Bangalore"  
}  
}  
}

GET [http://localhost:9200/abc/cand/230/\_percolate](http://localhost:9200/abc/cand/230/_percolate)  
{  
"took": 5,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"total": 0,  
"matches": []  
}

zero matches was retuned. It should have returned 'Bangalore'. When I give the document in the body while precolating, I am getting the matches. Only this percolation of Existing document doesn't work.

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [June 29, 2016, 10:54am UTC](https://discuss.elastic.co/t/elastic-search-percolation-of-existing-document-doesnt-work/54263/2 "2016-06-29T10:54:01Z")

</div>

You should get an error stating "Strict field resolution and no field mapping can be found for the field with name [message]" when percolating your query because there's no `message` field in the `cand` mapping type (there is a `doc.message` field, though)

Assuming your initial document is the following one (i.e. without the `"doc": { ... }`)

```
{
   "message":"Java C# Bangalore"	
}

```

Then the percolation will work.

---

<div class="post-metadata">

**Author:** ![Nisar\_Adappadathil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nisar_adappadathil/32/13224_2.png) [@Nisar\_Adappadathil](https://discuss.elastic.co/u/Nisar_Adappadathil)\
**Post date:** [July 11, 2016, 3:55pm UTC](https://discuss.elastic.co/t/elastic-search-percolation-of-existing-document-doesnt-work/54263/3 "2016-07-11T15:55:09Z")

</div>

Thanks a lot..It worked!!!!

---

<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, 10:36pm UTC](https://discuss.elastic.co/t/elastic-search-percolation-of-existing-document-doesnt-work/54263/4 "2017-07-05T22:36:31Z")

</div>


