繁体   English   中英

Elasticsearch索引创建错误

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM