es

package
v0.0.0-...-e97be17 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESIndexer

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

func NewESIndexer

func NewESIndexer(nodes []string) (*ESIndexer, error)

func (*ESIndexer) FindByID

func (i *ESIndexer) FindByID(linkID uuid.UUID) (*indexer.Document, error)

func (*ESIndexer) Index

func (i *ESIndexer) Index(doc *indexer.Document) error

func (*ESIndexer) Search

func (i *ESIndexer) Search(q indexer.Query) (indexer.Iterator, error)

func (*ESIndexer) UpdateScore

func (i *ESIndexer) UpdateScore(linkID uuid.UUID, score float64) error

Jump to

Keyboard shortcuts

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