# Percolator Index Mapping

**URL:** <https://discuss.elastic.co/t/percolator-index-mapping/96884>\
**Category:** Elasticsearch\
**Created:** [August 13, 2017, 6:01pm UTC](https://discuss.elastic.co/t/percolator-index-mapping/96884 "2017-08-13T18:01:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [August 13, 2017, 6:01pm UTC](https://discuss.elastic.co/t/percolator-index-mapping/96884/1 "2017-08-13T18:01:37Z")

</div>

I am using elasticsearch 5.5 and want to create a percolator index with the following mapping :  
{  
"usqueriesfreqpercolators" : {  
"mappings" : {  
"queries" : {  
"properties" : {  
"query" : {  
"type" : "percolator"  
}  
}  
},  
"docs" : {  
"properties" : {  
"content" : {  
"type" : "text",  
"analyzer" : "english"  
}  
}  
}  
}  
}  
}  
However When I use the following command :  
PUT /my-index  
{  
"mappings": {  
"queries": {  
"properties": {  
"query": {  
"type": "percolator"  
}  
}  
},  
"docs" : {  
"properties" : {  
"content" : {  
"type" : "text",  
"analyzer" : "english"  
}  
}  
}

```
}

```

}

The resultant mapping is reverse of what I need :  
{  
"usqueriesfreqpercolators\_test" : {  
"mappings" : {  
"docs" : {  
"properties" : {  
"content" : {  
"type" : "text",  
"analyzer" : "english"  
}  
}  
},  
"queries" : {  
"properties" : {  
"query" : {  
"type" : "percolator"  
}  
}  
}  
}  
}  
}

Can anybody please help ?

Thanks & Regards,  
Siddharth.

---

<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:** [September 10, 2017, 6:01pm UTC](https://discuss.elastic.co/t/percolator-index-mapping/96884/2 "2017-09-10T18:01:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
