简体   繁体   中英

Elasticsearch index creation error

I try to create an Index for elasticsearch with

curl -XPUT 'http://localhost:9200/myindex'

but I always got following error:

{"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}

The creation of the Index template before was no problem, but I cannot find anything how to solve the Index creation problem in Internet. Only I found that I have to remove the stop words filter. But no documentation how to do this.

Does anybody can help me? Thanks.

It sounds like you have an index template defined which is using the enable_position_increments parameter. You can check by retrieving all index templates:

curl localhost:9200/_template/*?pretty

The enable_position_increments option in the stopwords filter is no longer supported because it produces broken token streams if disabled.

Find the template that uses this setting and update it to no longer use it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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