我在向索引中增加分词时使用如下的设置:
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true&pretty' -d '{
"index.analysis.analyzer.default.segAlgorithm" : "ReverseMinimumMatching",
"index.analysis.analyzer.default.type" : "word",
"index.analysis.tokenizer.default.segAlgorithm" : "ReverseMinimumMatching",
"index.analysis.tokenizer.default.type" : "word"
}'
设置提示成功,但是当我尝试打开索引是,系统报错,错误信息为:
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "Unknown tokenizer type [word] for [default]"
}
],
"type" : "illegal_argument_exception",
"reason" : "Unknown tokenizer type [word] for [default]"
},
"status" : 400
}
请各位高手帮忙看看是什么问题。万分感谢!!!!!!!!!!!
curl -XPUT 'http://localhost:9200/_all/_settings?preserve_existing=true&pretty' -d '{
"index.analysis.analyzer.default.segAlgorithm" : "ReverseMinimumMatching",
"index.analysis.analyzer.default.type" : "word",
"index.analysis.tokenizer.default.segAlgorithm" : "ReverseMinimumMatching",
"index.analysis.tokenizer.default.type" : "word"
}'
设置提示成功,但是当我尝试打开索引是,系统报错,错误信息为:
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "Unknown tokenizer type [word] for [default]"
}
],
"type" : "illegal_argument_exception",
"reason" : "Unknown tokenizer type [word] for [default]"
},
"status" : 400
}
请各位高手帮忙看看是什么问题。万分感谢!!!!!!!!!!!
0 个回复