package
0.0.0-20201013133145-f4c30acb3704
Repository: https://github.com/go-ego/riot.git
Documentation: pkg.go.dev

# Constants

DocIdsIndex 仅存储文档的 docId.
FrequenciesIndex 存储关键词的词频,用于计算BM25.
LocsIndex 存储关键词在文档中出现的具体字节位置(可能有多个) 如果你希望得到关键词紧邻度数据,必须使用 LocsIndex 类型的索引.

# Structs

Attri doc attribute.
BaseResp search response options.
BM25Parameters 见http://en.wikipedia.org/wiki/Okapi_BM25 默认值见 engine_init_options.go.
Content search content.
DocData type document Index Data struct.
DocIndex document's index.
DocInfo document info.
DocInfosShard 文档信息[id]info.
EngineOpts init engine options.
Expr logic expression options.
IndexedDoc 索引器返回结果.
IndexerOpts 初始化索引器选项.
InvertedIndexShard 反向索引表([关键词]反向索引表).
KeywordIndex 反向索引项,这实际上标注了一个(搜索键,文档)对。.
KeywordIndices 反向索引表的一行,收集了一个搜索键出现的所有文档, 按照 DocId 从小到大排序。.
Logic logic options.
RankByBM25 一个简单的评分规则,文档分数为BM25.
RankOpts rank options.
ScoredDoc scored the document.
ScoredID scored doc only id.
SearchDoc search response options.
SearchID search response options.
SearchReq search request options.
SearchResp search response options.
TokenData 文档的一个关键词.

# Interfaces

ScoringCriteria 评分规则通用接口.

# Type aliases

DocIndexData type document Index Data struct type DocIndexData DocData.
DocsId 方便批量删除文档索引 type DocsId []uint64.
DocsIndex 方便批量加入文档索引.
ScoredDocs 为了方便排序.
ScoredIDs 为了方便排序.