Hi,
Am trying to create the following settings and mappings using phonetics type filter in my analyzers..
Following are my settings and mappings:
PUT test_did_u_mean
{
"mappings": {
"locations": {
"properties": {
"GenericDescriptionId": {
"type": "string"
},
"GroupNumber": {
"type": "string",
"store": "no",
"analyzer": "plainAnalyzer"
},
"description": {
"type": "string",
"store": "no",
"analyzer": "soundsAnalyzer"
},
"catalogDescriptions": {
"type": "string"
}
}
}
},
"settings": {
"index": {
"number_of_shards": 6,
"number_of_replicas": 1
},
"analysis": {
"filter": {
"soundsFilter": {
"type": "phonetic",
"encoder": "soundex",
"replace": true
}
},
"analyzer": {
"soundsAnalyzer": {
"tokenizer": "standard",
"filter": [
"standard",
"lowercase",
"soundsFilter"
]
},
"plainAnalyzer": {
"type": "standard",
"stopwords": "none"
}
}
}
}
}
when am running this am getting the following Exception:
{
"error": "IndexCreationException[[test_did_u_mean] failed to create index]; nested: ElasticsearchIllegalArgumentException[failed to find token filter type [phonetic] for [soundsFilter]]; nested: NoClassSettingsException[Failed to load class setting [type] with value [phonetic]]; nested: ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory]; ",
"status": 400
}
May I know why am getting this and how to make phonetics to work...