/ / Elasticsearchアナライザーは例外を検出できませんでした-例外、elasticsearch、アナライザー

弾性検索アナライザが見つかりませんでした例外 - 例外、elasticsearch、アナライザ

私の設定でインデックスを作成しましたアナライザー。インデックスプロパティを呼び出すと、アナライザーの設定が表示されます。アナライザーで何かインデックスを使用しようとすると、「アナライザーが見つかりませんでした」という名前の例外がスローされます。

"settings":{
"index":{
"settings":{
"analysis":{
"filter":{
"turkce_lowercase":{
"type":"lowercase",
"language":"turkish"},
"turkce_stop":{
"type":"stop",
"stopwords_path":"/home/power/Documents/stop_words.txt"}
},
"analyzer":{
"turkce":{
"filter":["turkce_lowercase","turkce_stop"],
"tokenizer":"standard_tokenizer"}
},
"tokenizer":{
"standard_tokenizer":{
"type":"standard",
"max_token_length":"900"}
}
}
}
}
}

回答:

回答№1は0

あなたの カスタムアナライザー、単に追加する必要があります "type": "custom" アナライザーが標準ではなくカスタムアナライザーであることを示します。

  "analyzer": {
"turkce": {
"type": "custom",            <----- add this
"filter": [
"turkce_lowercase",
"turkce_stop"
],
"tokenizer": "standard_tokenizer"
}
}