Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WuKongRanker ¶
type WuKongRanker struct {
// contains filtered or unexported fields
}
func NewWuKongRanker ¶
func NewWuKongRanker() *WuKongRanker
func (*WuKongRanker) AddScoringFields ¶
func (self *WuKongRanker) AddScoringFields(docId uint64, fields interface{})
给某个文档添加评分字段
func (*WuKongRanker) Rank ¶
func (self *WuKongRanker) Rank( docs []search.IndexedDocument, options search.RankOptions) (outputDocs search.ScoredDocuments)
给文档评分并排序
func (*WuKongRanker) RemoveScoringFields ¶
func (self *WuKongRanker) RemoveScoringFields(docId uint64)
删除某个文档的评分字段
Click to show internal directories.
Click to hide internal directories.