Phonetic plugin

(Jerome David) #1

I would like to use the phonetic analysis.

I am using elasticsearch v2.2.0.

I installed the analysis_phonetic plugin:

bin\plugin install analysis-phonetic

It seems to be installed correctly.

bin\plugin list returns analysis-phonetic

However, when I try to add an analysis filter:
"phonetic_filter_en": { "type": "phonetic", "encoder": "beidermorse", "languageset": ["english"] }

I get an error saying that the type "phonetic" is unknown.
{"error":{"root_cause":[{"type":"index_creation_exception","reason":"failed to create index"}],"type":"illegal_argument_exception","reason":"Unknown TokenFilter type [phonetic] for [phonetic_filter_en]"},"status":400}

I don't know why I am getting this error.

(David Pilato) #2

Did you restart the nodes?

(Jerome David) #3

I found out why.
Elasticsearch had been started with -Des.path.plugins=...

Running bin\plugin -Des.path.plugins=... to install the plugin fixed the problem.

(system) #4