index

package
v0.0.0-...-300a937 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cap

func Cap(l1 *list.List, l2 *list.List) *list.List

func CompareLists

func CompareLists(t *testing.T, expected *list.List, actual *list.List)

func Cup

func Cup(l1 *list.List, l2 *list.List) *list.List

func Invert

func Invert(l *list.List, all *list.List) *list.List

func SliceToList

func SliceToList(slice []DocID) *list.List

Types

type DocID

type DocID uint32

func ListToSlice

func ListToSlice(l *list.List) []DocID

type Index

type Index struct {
	DocIDs *list.List
}

func NewIndex

func NewIndex(docIDs *list.List) *Index

func (*Index) Insert

func (i *Index) Insert(d DocID)

type Indexer

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

func NewIndexer

func NewIndexer(decoder decoding.Decoder, normalizer normalizing.Normalizer, config *config.Index) *Indexer

func (*Indexer) IndexFiles

func (i *Indexer) IndexFiles(filePaths []string) (InvertIndex, error)

type InvertIndex

type InvertIndex map[string]*Index

Jump to

Keyboard shortcuts

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