PUT /documents { "settings": { "analysis": { "analyzer": { "my_chinese_analyzer": { "type": "custom", "tokenizer": "ik_max_word" } } } }, "mappings": { "properties": { "filename": { "type": "text", "analyzer": "ik_max_word", "search_analyzer": "ik_smart" }, "filepath": { "type": "keyword" }, "content": { "type": "text", "analyzer": "ik_max_word", "search_analyzer": "ik_smart" }, "mtime": { "type": "date" } } } }