it搜索引擎的mapping

curl -XPUT http://localhost:9200/it
curl -XPOST http://localhost:9200/it/pages/_mapping -d'
{
    "pages": {
             "_all": {
            "analyzer": "ik_max_word",
            "search_analyzer": "ik_max_word",
            "store": "false"
        },
        "properties": {
            "content": {
                "type": "string",
                "analyzer": "ik_max_word",
                "search_analyzer": "ik_max_word",
                "include_in_all": "true"
            },
            "title": {
                "type": "string",
                "analyzer": "ik_max_word",
                "search_analyzer": "ik_max_word",
                "include_in_all": "true"
            },
        }
    }
}'

你可能感兴趣的:(it搜索引擎的mapping)