1:
设计索引库的
settings
信息的
mappings
信息,并把这些配置信息保存到一个配置文件中。
vi bjsxt.json
{
"settings":{
"number_of_shards":5,
"number_of_replicas":0
},
"mappings":{
"doc":{
"dynamic":"strict",
"properties":{
"id":{"type":"integer","store":"yes"},
"title":{"type":"string","store":"yes","index":"analyzed","analyzer":
"ik_max_word","search_analyzer": "ik_max_word"},
"describe":{"type":"string","store":"yes","index":"analyzed","analyzer":
"ik_max_word","search_analyzer": "ik_max_wo