ES index配置总结

Template

  1. String不分析, 开启_all字段, 关闭时间自动发现
{
        "template": "*",
        "mappings": {
            "_default_": {
                "_source": {"enabled": true},
                "_all": {"enabled": true},
                "date_detection": false,
                "dynamic_templates": [
                    {
                        "string": {
                            "mapping": {
                                "index": "not_analyzed",
                                "type": "string"
                            },
                            "match_mapping_type": "string"
                        }
                    }
                ]
            }
        },
        "aliases": {}
}


猜你喜欢

转载自blog.csdn.net/weixin_34195546/article/details/87099541