ranker

package
v0.0.0-...-5e73d17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2016 License: GPL-2.0 Imports: 5 Imported by: 2

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) Init

func (self *WuKongRanker) Init()

排序起初始化

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)

删除某个文档的评分字段

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL