MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ElasticSearchData

Struct ElasticSearchData

models/elasticsearch.go:40–48  ·  view source on GitHub ↗

全文搜索

Source from the content-addressed store, hash-verified

38
39//全文搜索
40type ElasticSearchData struct {
41 Id int `json:"id"` //文档或书籍id
42 BookId int `json:"book_id"` //书籍id。这里的book_id起到的作用是IsBooK的布尔,以及搜索书籍文档时候的过滤
43 Title string `json:"title"` //文档标题或书籍名称
44 Keywords string `json:"keywords"` //文档或书籍关键字
45 Content string `json:"content"` //文档摘要或书籍文本内容
46 Vcnt int `json:"vcnt"` //浏览量
47 Private int `json:"private"` //书籍或者文档是否是公开的
48}
49
50//统计信息结构
51type ElasticSearchCount struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected