mirror of
https://github.com/201206030/novel.git
synced 2025-07-11 23:26:38 +00:00
feat: 集成 Elasticsearch 8.2.0
This commit is contained in:
62
doc/es/book.http
Normal file
62
doc/es/book.http
Normal file
@ -0,0 +1,62 @@
|
||||
PUT /book
|
||||
{
|
||||
"mappings" : {
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"authorId" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"authorName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart"
|
||||
},
|
||||
"bookName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart"
|
||||
},
|
||||
"bookDesc" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart"
|
||||
},
|
||||
"bookStatus" : {
|
||||
"type" : "short"
|
||||
},
|
||||
"categoryId" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"categoryName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart"
|
||||
},
|
||||
"lastChapterId" : {
|
||||
"type" : "long"
|
||||
},
|
||||
"lastChapterName" : {
|
||||
"type" : "text",
|
||||
"analyzer": "ik_smart"
|
||||
},
|
||||
"lastChapterUpdateTime" : {
|
||||
"type": "keyword"
|
||||
},
|
||||
"picUrl" : {
|
||||
"type" : "keyword",
|
||||
"index" : false,
|
||||
"doc_values" : false
|
||||
},
|
||||
"score" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"wordCount" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"workDirection" : {
|
||||
"type" : "short"
|
||||
},
|
||||
"visitCount" : {
|
||||
"type": "long"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user