inverted

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package inverted implements an inverted index.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocID

type DocID uint32

type Index

type Index map[string][]DocID

func NewIndex

func NewIndex() Index

func (Index) Add

func (idx Index) Add(tokens []string) DocID

func (Index) Delete

func (idx Index) Delete(tokens []string, id DocID)

func (Index) Query

func (idx Index) Query(tokens []string, pct int) []DocID

Jump to

Keyboard shortcuts

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