【问题标题】:Elasticsearch explain error - Document mapping type name can't start with '_'Elasticsearch 解释错误 - 文档映射类型名称不能以“_”开头
【发布时间】:2019-01-04 11:48:16
【问题描述】:

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。

【问题讨论】:

    标签: elasticsearch explain


    【解决方案1】:

    您的网址中有一个小错字

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

    【讨论】:

    • 酷,很高兴它有帮助!
    猜你喜欢
    • 1970-01-01
    • 2018-06-15
    • 1970-01-01
    • 1970-01-01
    • 2016-08-27
    • 1970-01-01
    • 1970-01-01
    • 2016-05-14
    • 1970-01-01
    相关资源
    最近更新 更多