bloomindex

package module
v0.0.0-...-d79c82a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 3 Imported by: 2

README

go-bloomindex: bloom-filter based search index

godoc: http://godoc.org/github.com/dgryski/go-bloomindex

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 DocID

type DocID uint64

type Index

type Index struct {
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex(blockSize, metaSize int, hashes int) *Index

func (*Index) AddDocument

func (idx *Index) AddDocument(terms []uint32) DocID

func (*Index) Query

func (idx *Index) Query(terms []uint32) []DocID

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

Jump to

Keyboard shortcuts

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