# Custom analyzer for percolator queries

**URL:** https://discuss.elastic.co/t/custom-analyzer-for-percolator-queries/138932
**Category:** Elasticsearch
**Created:** [July 6, 2018, 2:10pm UTC](https://discuss.elastic.co/t/custom-analyzer-for-percolator-queries/138932 "2018-07-06T14:10:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Prabhakaran\_N](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@Prabhakaran\_N](https://discuss.elastic.co/u/Prabhakaran_N)
#### Post date: [July 6, 2018, 2:11pm UTC](https://discuss.elastic.co/t/custom-analyzer-for-percolator-queries/138932/1 "2018-07-06T14:11:00Z")

</div>

I created a percolator index with custom analyzer ( tokenizer : Whitespace ). But while i applying my docs to that percolate index my custom analyzer is not reflecting . Somewhere in net i read that while searching through percolate also we need to add custom analyzer into that query, So i tried that's too but i got error only ..

it ll be helpful if anyone send that syntax.. or clarify my doubt !!!

> Blockquote  
> {  
> "size": 999,  
> "query": {  
> "percolate": {  
> "field": "query",  
> "document\_type": "charts",  
> "document": {"doc": " Happy-Birthday to you "}  
> }  
> },  
> "highlight": {  
> "pre\_tags": ["~~"],  
> "post\_tags": ["~~"],  
> "fields": {  
> "doc": {  
> "type": "plain",  
> "fragmenter": "span",  
> "number\_of\_fragments": 0  
> }  
> }  
> }  
> }  
> \< Blockquote

---

<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: [August 3, 2018, 2:11pm UTC](https://discuss.elastic.co/t/custom-analyzer-for-percolator-queries/138932/2 "2018-08-03T14:11:17Z")

</div>

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