强文本有人可以告诉我这个 Elasticsearch 错误是什么意思,它给我一个解释查询 192.132.4.43:9200/search/_search&explain=true
{
"error": {
"root_cause": [
{
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_search&explain=true]"
}
],
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_search&explain=true]"
},
"status": 400
}
没有解释的查询效果很好,但是当我调用解释时,它会抛出这个错误。 Elasticsearch 是 6。
最佳答案
您的网址中有一个小错字
192.132.4.43:9200/search/_search?explain=true
^
|
use ? here instead of &
关于Elasticsearch 解释错误 - 文档映射类型名称不能以 '_' 开头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54038402/