Documentation ¶
Overview ¶
Package bloomindex is a bloom-filter based search index
References:
"Reasoning about performance (in the context of search)" Dan Luu http://bitfunnel.org/strangeloop/ "Bloofi: Multidimensional Bloom Filters" Adina Crainiceanu, Daniel Lemire https://arxiv.org/abs/1501.01941 BitFunnel: Revisiting Signatures for Search https://danluu.com/bitfunnel-sigir.pdf https://www.youtube.com/watch?v=1-Xoy5w5ydM
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) AddDocument ¶
type ShardedIndex ¶
type ShardedIndex struct {
// contains filtered or unexported fields
}
func NewShardedIndex ¶
func NewShardedIndex(fprate float64, hashes int) *ShardedIndex
func (*ShardedIndex) AddDocument ¶
func (sh *ShardedIndex) AddDocument(terms []uint32) DocID
func (*ShardedIndex) Query ¶
func (sh *ShardedIndex) Query(terms []uint32) []DocID
Click to show internal directories.
Click to hide internal directories.