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"
}
}
}
}
}
}