# Soundex phonetic not working

**URL:** <https://discuss.elastic.co/t/soundex-phonetic-not-working/317383>\
**Category:** Elasticsearch\
**Created:** [October 25, 2022, 8:51am UTC](https://discuss.elastic.co/t/soundex-phonetic-not-working/317383 "2022-10-25T08:51:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitin\_Dabadghav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin_dabadghav/32/106918_2.png) [@Nitin\_Dabadghav](https://discuss.elastic.co/u/Nitin_Dabadghav)\
**Post date:** [October 25, 2022, 8:51am UTC](https://discuss.elastic.co/t/soundex-phonetic-not-working/317383/1 "2022-10-25T08:51:39Z")

</div>

I am trying to use phonetic's soundex encoder. I have an index which has a record for a name which has a string "Yangtze". If I try to search with a misspelled strings like "yangse", "yantse" or similar, I am unable to get any results.  
below is my definition of the analyzer.

PUT my\_index  
{  
"settings": {  
"analysis": {  
"analyzer": {  
"soundex": {  
"type": "custom",  
"tokenizer": "standard",  
"filter": [  
"lowercase",  
"refined\_soundex\_example"  
]  
}  
"filter": {  
"refined\_soundex\_example": {  
"type": "phonetic",  
"encoder": "refined\_soundex",  
"replace": true  
}  
}  
}  
},  
"mappings": {  
"properties": {  
"name": {  
"type": "text",  
"analyzer": "soundex",  
"fields" : {  
"standard" : {  
"type" : "text"  
}  
}  
}  
}  
}  
}

---

<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 22, 2022, 8:52am UTC](https://discuss.elastic.co/t/soundex-phonetic-not-working/317383/2 "2022-11-22T08:52:30Z")

</div>

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