[英]Elasticsearch index creation error
我嘗試創建一個用於Elasticsearch的索引
curl -XPUT 'http://localhost:9200/myindex'
但我總是出現以下錯誤:
{"error":"IndexCreationException[[myindex] failed to create index]; nested: ElasticSearchIllegalArgumentException[[enable_position_increments: false] is not supported anymore as of Lucene 4.4 as it can create broken token streams. Please fix your analysis chain or use an older compatibility version (<=4.3) but beware that it might cause unexpected behavior.]; ","status":400}
以前創建索引模板沒有問題,但是我找不到如何解決Internet中索引創建問題的任何方法。 只有我發現自己必須刪除停用詞過濾器。 但沒有文檔說明如何執行此操作。
有人可以幫助我嗎? 謝謝。
聽起來您已經定義了使用enable_position_increments
參數的索引模板。 您可以通過檢索所有索引模板進行檢查:
curl localhost:9200/_template/*?pretty
stopwords
過濾器中的enable_position_increments
選項不再受支持,因為如果禁用,它將產生中斷的令牌流。
查找使用此設置的模板,並將其更新為不再使用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.