文档Map类型名称不能以“\开头”

7eumitmz  于 2021-06-15  发布在  ElasticSearch
关注(0)|答案(1)|浏览(632)

strong TEXT有人能告诉我这个elasticsearch错误是什么意思吗?它抛出了一个解释查询192.132.4.43:9200/search/\u 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
}

不带explain的查询工作得很好,但是当我调用explain时,它抛出了这个错误。elasticsearch是6。

r1zk6ea1

r1zk6ea11#

你的url有一个小的输入错误

192.132.4.43:9200/search/_search?explain=true
                                ^
                                |
                     use ? here instead of &

相关问题