Elasticsearch 解释错误 - 文档映射类型名称不能以“_”开头
Elasticsearch explain error - Document mapping type name can't start with '_'
strong text有人可以告诉我这个 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.
您的 URL
中有一个小错字
192.132.4.43:9200/search/_search?explain=true
^
|
use ? here instead of &
strong text有人可以告诉我这个 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.
您的 URL
中有一个小错字192.132.4.43:9200/search/_search?explain=true
^
|
use ? here instead of &