elasticsearch,Lucene,Indexing,elasticsearch" /> elasticsearch,Lucene,Indexing,elasticsearch" />

Lucene Elasticsearch索引创建错误

Lucene Elasticsearch索引创建错误,lucene,indexing,elasticsearch,Lucene,Indexing,elasticsearch,我尝试使用创建elasticsearch索引 curl -XPUT 'http://localhost:9200/myindex' 但我总是犯以下错误: {"error":"IndexCreationException[[myindex] failed to create index]; nested: ElasticSearchIllegalArgumentException[[enable_position_increments: false] is not supported anymo

我尝试使用创建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}

{“error”:“IndexCreationException[[myindex]未能创建索引];嵌套:ElasticSearchIllegalArgumentException[[enable_position_increments:false]从Lucene 4.4开始不再受支持,因为它可以创建断开的令牌流。请修复分析链或使用旧的兼容版本(听起来您定义了一个索引模板,该模板使用了
启用位置增量
参数。您可以通过检索所有索引模板进行检查:

curl localhost:9200/_template/*?pretty
stopwords
过滤器中的
enable\u position\u increments
选项不再受支持,因为如果禁用该选项,它会生成断开的令牌流


找到使用此设置的模板,并将其更新为不再使用。

6小时后,弹性搜索愿意再次使用该模板,然后它以某种方式工作。但今天我放弃配置它,因为我总是做一些事情,但我不想做任何事。所有功能都是现有的文档,但现在如何处理它。我“我不是这个部分的开发人员,所以它必须留下来,因为开发人员回来了。。。