【es】创建索引和映射
参考:http://www.cnblogs.com/sheeva/p/4837881.html
创建索引:
curl -XPUT 'http://localhost:9200/some_index'
创建映射,指定字段为not_analyzed类型。(前提是要创建索引)
curl -XPUT 'http://localhost:9200/some_index/_mapping/some_doc_type?pretty' -d ' {"properties":{ "some_title":{"type":"string", "index":"not_analyzed"} } }'