curl -XPUT 'http://localhost:9200/hec_test3' -d ' { "mappings": { "hec_type3": { "_source": { "enabled": false }, "_all": { "enabled": false }, "properties": { "event": { "type": "string", "store": "yes", "include_in_all": false, "doc_values": false, "index_options": "docs" } } } } } '
此外,强制merge也可以大大降低索引的大小!
curl -XPOST 'localhost:9200/hec_test3/_forcemerge'
本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/6428281.html,如需转载请自行联系原作者