全文搜索
| 38 | |
| 39 | //全文搜索 |
| 40 | type 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 | //统计信息结构 |
| 51 | type ElasticSearchCount struct { |
nothing calls this directly
no outgoing calls
no test coverage detected