Just contact Elasticsearch, many things will not be used, Baidu a lot, do not understand, finally found out the simplest way to build mappings through HTTP ~
Some people in the establishment of mappings newspaper various errors, first, if you have the data in this index, you want to modify, the simplest way to re-establish a new index, after successful, then switch.
1. Example description, create a new index named RDX_INDEX_V2
The part of the mosaic that is your server address
3. Set Mappings Format Demo:
{ "Settings": { "Number_of_shards": 5 }, "mappings": { "Rdx_type": { "Properties": { "Zhanghu": { ' Type ': ' String ' }, "Zy_mingzi": { ' Type ': ' String ' }, "Zy_xingbie": { "Type": "string", "index": "Not_analyzed" }, "zy_leixing": { "Type": "string", "index": "Not_analyzed" }, "Zy_hezuo_zishu": { ' type ': ' Integer ' } } } }}
4. Click Submit Request, Success ~
PS: There is a problem, you can leave a message to ask ~
How to build the mappings in Elasticsearch?