document_index_data.go 317 B

123456789101112
  1. package types
  2. type DocumentIndexData struct {
  3. // 文档全文,用于生成待索引的关键词
  4. Content string
  5. // 文档标签,比如文档的类别属性等,这些标签并不出现在文档文本中
  6. Labels []string
  7. // 文档的评分字段,可以接纳任何类型的结构体
  8. Fields interface{}
  9. }