# Percolate Query Match and field

**URL:** <https://discuss.elastic.co/t/percolate-query-match-and-field/16194>\
**Category:** Elasticsearch\
**Created:** [March 6, 2014, 2:42pm UTC](https://discuss.elastic.co/t/percolate-query-match-and-field/16194 "2014-03-06T14:42:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumit\_gupta\_sgt](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sumit\_gupta\_sgt](https://discuss.elastic.co/u/sumit_gupta_sgt)\
**Post date:** [March 6, 2014, 2:42pm UTC](https://discuss.elastic.co/t/percolate-query-match-and-field/16194/1 "2014-03-06T14:42:52Z")

</div>

Hi All,

I am trying to play with percolate query but i am confused about match and field for example

Match Query:

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

Note:This query is working fine for me.

Field Query:

curl -XPUT localhost:9200/my-index/.percolator/1 -d '{  
"query": {  
"field": {  
"message": "elasticsearch"  
}  
}  
}'

But when i try this query it shows exception {"error":"PercolatorException[[my-index] failed to parse query [1]]; nested: QueryParsingException[[my-index] No query registered for [field]]; ","status":500}  
and index is created.Please help or suggest where i am going wrong.

Thanks and Regards,  
Sumit Gupta

---

<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:45am UTC](https://discuss.elastic.co/t/percolate-query-match-and-field/16194/2 "2017-07-06T01:45:20Z")

</div>


