Bre*_*ren 13 indexing analyzer elasticsearch
我正在尝试创建一个测试分析器来试验对弹性搜索的分析。我创建了一个名为“mytest”的索引,该索引可用且可搜索,但是当我尝试创建自定义分析器时,出现以下错误
{
"error": "ElasticsearchIllegalArgumentException[Can't update non dynamic settings[[index.analysis.analyzer.content.type, index.analysis.analyzer.content.tokenizer]] for open indices [[mytest]]]",
"status": 400
}
Run Code Online (Sandbox Code Playgroud)
现在我不确定更新设置的限制,但我在文档中找不到任何内容。我可以在创建索引时创建分析,但更新不起作用。
使用下面的源创建分析器
PUT mytest/_settings
{
"analysis" : {
"analyzer":{
"content":{
"type":"custom",
"tokenizer":"whitespace"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
有任何想法吗 ?
| 归档时间: |
|
| 查看次数: |
15287 次 |
| 最近记录: |