es6.x和es7.x如何创建索引?

一、es6.x

{
    "settings": {
        "number_of_shards": "2",
        "number_of_replicas": "2",
        "max_result_window": 100000
    },
    "mappings": {
        "doc": {
            "dynamic": "strict",
            "properties": {
                "name": {
                    "type": "keyword"
                }
            }
        }
    }
}

二、es7.x

{
    "number_of_shards": "2",
    "number_of_replicas": "2",
    "max_result_window": 100000,
    "analysis": {
        "analyzer": {
            "ik": {
                "tokenizer": "ik_max_word"
            }
        }
    },
    "dynamic": "strict",
    "properties": {
        "name": {
            "type": "text"
        }
    }
}

你可能感兴趣的:(es6,数据库,mysql)