fts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTS

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

func NewFTS

func NewFTS(path string) (*FTS, error)

func (*FTS) AddToIndex

func (fts *FTS) AddToIndex(collectionName string, id string, document interface{}) error

Building the Inverted Index

func (*FTS) Clear

func (fts *FTS) Clear() error

func (*FTS) Close

func (fts *FTS) Close() error

func (*FTS) DeleteFromIndex

func (fts *FTS) DeleteFromIndex(collectionName string, id string, document map[string]interface{}) error

Deleting from the Inverted Index

func (*FTS) PrintIndex

func (fts *FTS) PrintIndex() error

Print Index

func (*FTS) Search

func (fts *FTS) Search(collectionName, text string) ([]string, error)

Querying

Jump to

Keyboard shortcuts

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