bleve

package
v0.0.0-...-4f898de Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

An Index implements the docshelf.TextIndex interface.

func New

func New() (Index, error)

New returns a new bleve Index.

func (Index) Index

func (i Index) Index(ctx context.Context, doc docshelf.Doc) error

Index takes a docshelf Doc and indexes it in bleve.

func (Index) Search

func (i Index) Search(ctx context.Context, query string) ([]string, error)

Search takes a search term and returns all doc paths that match.

Jump to

Keyboard shortcuts

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