# Enable Soundex query

**URL:** <https://discuss.elastic.co/t/enable-soundex-query/215633>\
**Category:** Elasticsearch\
**Created:** [January 19, 2020, 5:07pm UTC](https://discuss.elastic.co/t/enable-soundex-query/215633 "2020-01-19T17:07:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![somesh1980](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somesh1980](https://discuss.elastic.co/u/somesh1980)\
**Post date:** [January 19, 2020, 5:07pm UTC](https://discuss.elastic.co/t/enable-soundex-query/215633/1 "2020-01-19T17:07:46Z")

</div>

I am using elasticsearch 7.0.1 and trying to enable soundex query

1. First I tried to add following config in elasticsearch.yml  
index:  
analysis:  
analyzer:  
search\_soundex:  
type: custom  
tokenizer: soundex\_filter  
filter:  
soundex\_filter:  
type: phonetic  
encoder: soundex  
replace: true

But it gave an error as "Caused by: java.lang.IllegalArgumentException: node settings must not contain any index level settings"

1. Then I removed above settings and added following while in PUT request of creating the index  
{  
"settings": {  
"analysis": {  
"analyzer": {  
"search\_soundex": {  
"type": "custom",  
"tokenizer": "soundex\_filter",  
"filter": [{  
"soundex\_filter": {  
"type": "phonetic",  
"encoder": "soundex",  
"replace": true }  
}]  
}  
}  
}  
}  
}

But that also gave following error  
{"error":{"root\_cause":[{"type":"settings\_exception","reason":"Failed to load settings from [{"analysis":{"analyzer":{"search\_soundex":{"filter":[{"soundex\_filter":{"replace":true,"type":"phonetic","encoder":"soundex"}}],"type":"custom","tokenizer":"soundex\_filter"}}}}]"}],"type":"settings\_exception","reason":"Failed to load settings from [{"analysis":{"analyzer":{"search\_soundex":{"filter":[{"soundex\_filter":{"replace":true,"type":"phonetic","encoder":"soundex"}}],"type":"custom","tokenizer":"soundex\_filter"}}}}]","caused\_by":{"type":"illegal\_state\_exception","reason":"only value lists are allowed in serialized settings"}},"status":500}

Can somebody please help

---

<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:** [February 16, 2020, 5:07pm UTC](https://discuss.elastic.co/t/enable-soundex-query/215633/2 "2020-02-16T17:07:48Z")

</div>

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