Elasticsearch 解释错误 - 文档映射类型名称不能以 '_' 开头

标签 elasticsearch explain

强文本有人可以告诉我这个 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/

相关文章:

elasticsearch - 在elasticsearch的should bool子句中,默认评分模式是什么?

api - 如何在java api中编写elasticsearch script_score

regex - Kibana 中的正则表达式问题

postgresql - 计算组内的行数,但也来自全局结果集 : performance issue

mysql - 为什么索引添加在这里的解释语句中没有任何改变?

mysql - 索引未显示为可能的键

MySql执行路径突然变化很大,不一致,速度慢

python - ElasticHttpError : 406, 索引数据时 Elasticsearch 错误

elasticsearch - Nest MultiMatch 字段提升

MYSQL:数据变大后查询速度变慢