索引+搜索优化

This commit is contained in:
xiongxiaoyang
2020-05-20 21:23:59 +08:00
parent 8a628f081f
commit 002a0723f7
3 changed files with 177 additions and 168 deletions

View File

@ -11,17 +11,20 @@ PUT /novel
},
"authorName" : {
"type" : "text",
"analyzer": "ik_smart"
"analyzer": "ik_smart",
"boost": 1
},
"bookName" : {
"type" : "text",
"analyzer": "ik_smart"
"analyzer": "ik_smart",
"boost": 2
},
"bookDesc" : {
"type" : "text",
"analyzer": "ik_smart"
"analyzer": "ik_smart",
"boost": 0.1
},
"bookStatus" : {
@ -34,7 +37,8 @@ PUT /novel
"catName" : {
"type" : "text",
"analyzer": "ik_smart"
"analyzer": "ik_smart",
"boost": 0.5
},
"lastIndexId" : {
@ -43,7 +47,8 @@ PUT /novel
"lastIndexName" : {
"type" : "text",
"analyzer": "ik_smart"
"analyzer": "ik_smart",
"boost": 0.1
},
"lastIndexUpdateTime" : {