mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-04-27 01:40:50 +00:00
82 lines
1.3 KiB
Plaintext
82 lines
1.3 KiB
Plaintext
PUT /novel
|
||
{
|
||
"mappings" : {
|
||
|
||
"properties" : {
|
||
"id" : {
|
||
"type" : "long"
|
||
},
|
||
"authorId" : {
|
||
"type" : "long"
|
||
},
|
||
"authorName" : {
|
||
"type" : "text",
|
||
"analyzer": "ik_smart",
|
||
"boost": 1.5
|
||
},
|
||
|
||
"bookName" : {
|
||
"type" : "text",
|
||
"analyzer": "ik_smart",
|
||
"boost": 2
|
||
},
|
||
|
||
"bookDesc" : {
|
||
"type" : "text",
|
||
"analyzer": "ik_smart",
|
||
"boost": 0.1
|
||
},
|
||
|
||
"bookStatus" : {
|
||
"type" : "short"
|
||
},
|
||
|
||
"catId" : {
|
||
"type" : "integer"
|
||
},
|
||
|
||
"catName" : {
|
||
"type" : "text",
|
||
"analyzer": "ik_smart",
|
||
"boost": 1.0
|
||
},
|
||
|
||
"lastIndexId" : {
|
||
"type" : "long"
|
||
},
|
||
|
||
"lastIndexName" : {
|
||
"type" : "text",
|
||
"analyzer": "ik_smart",
|
||
"boost": 0.1
|
||
},
|
||
|
||
"lastIndexUpdateTime" : {
|
||
"type": "keyword"
|
||
},
|
||
|
||
"picUrl" : {
|
||
"type" : "keyword",
|
||
"index" : false,
|
||
"doc_values" : false
|
||
},
|
||
|
||
"score" : {
|
||
"type" : "float"
|
||
},
|
||
|
||
"wordCount" : {
|
||
"type" : "integer"
|
||
},
|
||
|
||
"workDirection" : {
|
||
"type" : "short"
|
||
},
|
||
|
||
"visitCount" : {
|
||
"type": "long"
|
||
}
|
||
|
||
}
|
||
}
|
||
} |