2015-09-11 89 views
1

我想创建一个测试分析器来对弹性搜索进行分析实验。我有一个索引创建一个名为“mytest的”,这是可用和可搜索的,但是当我尝试创建一个自定义的分析,我得到以下错误Elasticsearch无法更新非动态设置

{ 
"error": "ElasticsearchIllegalArgumentException[Can't update non dynamic settings[[index.analysis.analyzer.content.type, index.analysis.analyzer.content.tokenizer]] for open indices [[mytest]]]", 
"status": 400 
} 

现在我不知道的限制上更新设置,但我找不到任何文件。我可以在创建索引时创建分析,但更新不起作用。

使用下面的源创建分析器

PUT mytest/_settings 
{ 
    "analysis" : { 
    "analyzer":{ 
     "content":{ 
     "type":"custom", 
     "tokenizer":"whitespace" 
     } 
    } 
    } 
} 

任何想法?

+2

这可能[求助](http://stackoverflow.com/questions/12367877/change-settings-and-mappings-on-existing-index-in-elasticsearch) – keety

+0

@keety确它做了 – Bren

回答