# Problem with Percolation on an existing document

**URL:** <https://discuss.elastic.co/t/problem-with-percolation-on-an-existing-document/24217>\
**Category:** Elasticsearch\
**Created:** [June 23, 2015, 9:35pm UTC](https://discuss.elastic.co/t/problem-with-percolation-on-an-existing-document/24217 "2015-06-23T21:35:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shobhit\_Tyagi](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Shobhit\_Tyagi](https://discuss.elastic.co/u/Shobhit_Tyagi)\
**Post date:** [June 23, 2015, 9:35pm UTC](https://discuss.elastic.co/t/problem-with-percolation-on-an-existing-document/24217/1 "2015-06-23T21:35:47Z")

</div>

Hi guys,

I seem to be having an issue with percolation when using this API on an existing document.  
I am using an example exactly the same same as in the documentation.

Here is my index..

> curl -XPUT 'localhost:9200/my-index' -d '{  
> "mappings": {  
> "my-type": {  
> "properties": {  
> "message": {  
> "type": "string"  
> }  
> }  
> }  
> }  
> }'

Register a query with the percolator

> curl -XPUT 'localhost:9200/my-index/.percolator/1' -d '{  
> "query" : {  
> "match" : {  
> "message" : "bonsai tree"  
> }  
> }  
> }'

Insert in the index(3 documents)

> curl -XPUT 'localhost:9200/my-index/my-type/1' -d '{  
> "my-type" : {  
> "message" : "bonsai tree hello"  
> }  
> }'
> 
> curl -XPUT 'localhost:9200/my-index/my-type/2' -d '{  
> "my-type" : {  
> "message" : "bonsai hello"  
> }  
> }'
> 
> curl -XPUT 'localhost:9200/my-index/my-type/3' -d '{  
> "my-type" : {  
> "message" : "bonsai tree"  
> }  
> }'

Percolate exsiting document

> curl -XGET 'localhost:9200/my-index/my-type/1/\_percolate'  
> curl -XGET 'localhost:9200/my-index/my-type/2/\_percolate'  
> curl -XGET 'localhost:9200/my-index/my-type/3/\_percolate'

All these 3 give me no match what so ever.  
Any help with this please.

---

<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:05am UTC](https://discuss.elastic.co/t/problem-with-percolation-on-an-existing-document/24217/2 "2017-07-06T00:05:49Z")

</div>


