1. 程式人生 > >elasticsearch的mapping設定

elasticsearch的mapping設定

PUT /my_index
{
    "mappings": {
        "my_type": {
            "properties": {
                "title":  {
                    "type": "string",
                    "index":    "analyzed",
                    "analyzer": "ik_smart"
                }
            }
        }
    }
}