# Normalizer not working

**URL:** <https://discuss.elastic.co/t/normalizer-not-working/202911>\
**Category:** Elasticsearch\
**Created:** [October 9, 2019, 9:09pm UTC](https://discuss.elastic.co/t/normalizer-not-working/202911 "2019-10-09T21:09:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajsolanki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajsolanki/32/86859_2.png) [@rajsolanki](https://discuss.elastic.co/u/rajsolanki)\
**Post date:** [October 9, 2019, 9:09pm UTC](https://discuss.elastic.co/t/normalizer-not-working/202911/1 "2019-10-09T21:09:44Z")

</div>

\*\* sorry is this is a repeated question. I have already done research in this forum and did not find solution. \*\*

I have added normalizer to my existing index. So this is what did.

1. created new\_my\_index witt my mappings.
2. used reindex to copy data from old index to new one.
3. drop the old index and create alias name of the old index that points to new index.

Despite of that normalizer isnt working.

here is my settings

"settings" : {  
"index" : {  
"number\_of\_shards" : "1",  
"provided\_name" : "new1\_myindex",  
"creation\_date" : "1570653494679",  
"analysis" : {  
"normalizer" : {  
"my\_normalizer" : {  
"filter" : [  
"lowercase",  
"asciifolding"  
],  
"type" : "custom",  
"char\_filter" :   
}  
}  
}

for 2 of fields i have added my\_normalizer

"keys" : {  
"properties" : {  
"key" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"value" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256,  
"normalizer" : "my\_normalizer"  
}  
}  
}  
}  
},  
"keyword" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256,  
"normalizer" : "my\_normalizer"  
}  
}

\*\* yes keyword is my field name too 🙂 \*\*

so in my documents i have 4 documents which has 'hat' .

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/d/3d67f5c808d29a8da9fd03238a13d6382bc2baeb.png)

when i search for 'hat' i get one result back. Any idea what am i doing wrong ?

---

<div class="post-metadata">

**Author:** ![rajsolanki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajsolanki/32/86859_2.png) [@rajsolanki](https://discuss.elastic.co/u/rajsolanki)\
**Post date:** [October 9, 2019, 9:35pm UTC](https://discuss.elastic.co/t/normalizer-not-working/202911/2 "2019-10-09T21:35:11Z")

</div>

well apparently there was no issue 🙂 my search term was 'hat' instead of 'hats' 🙂

---

<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:** [November 6, 2019, 9:37pm UTC](https://discuss.elastic.co/t/normalizer-not-working/202911/3 "2019-11-06T21:37:07Z")

</div>

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