Elastic 6.2.1 アップグレードkuromoji_synのエラー出ます。

Hi,
私の日本語はとても下手だから英語で聞きます。
I upgrade my elasticsearch server from 5.6.1 to 6.2.1 and have the following error when I run this:

PUT template/something_template
{
"index_patterns" : "something
*",
"order" : 1,
"settings" : {
"analysis" : {
"filter" : {
"kuromoji_pos" : {
"type": "kuromoji_part_of_speech",
"stoptags" : ["# verb-main:", "動詞-自立","助詞-格助詞-一般",
"助詞-終助詞"]
},
"kuromoji_st" : {
"type":"stop",
"stopwords_path" : "my_stop_ja.txt"
},
"kuromoji_syn" : {
"type":"synonym",
"synonyms_path":"my_syn_ja.txt"
},
...

my_syn_ja.txt のコンテンツ

アメリカンフットボール, アメフト
南極海, 南氷洋
...

出るのエラー:

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "failed to build synonyms"
}
],
"type": "illegal_argument_exception",
"reason": "failed to build synonyms",
"caused_by": {
"type": "parse_exception",
"reason": "Invalid synonym rule at line 1",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "term: アメリカンフットボール analyzed to a token (アメリカンフットボール) with position increment != 1 (got: 0)"
}
}
},
"status": 400
}

I use the same syn file from version 0.9... and so far didn't had any problem, is there a change in the format?

ありがとうございます.

m(__)m

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