search

package
v0.0.0-...-873507f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: GPL-2.0, GPL-2.0-only Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPageMapping

func NewPageMapping() *mapping.IndexMappingImpl

NewPageMapping creates the Bleve mapping for a page structure

Types

type Index

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

Index is the search index

func NewIndex

func NewIndex(path string) (*Index, error)

NewIndex returns a new Index instance

func (*Index) Close

func (i *Index) Close() error

Close the bleve database

func (*Index) DeletePage

func (i *Index) DeletePage(id string) error

DeletePage removes a page from the search index

func (*Index) ExecuteSearch

func (i *Index) ExecuteSearch(r *bleve.SearchRequest) (*bleve.SearchResult, error)

ExecuteSearch executes the search query in the index and returns the result

func (*Index) IndexPage

func (i *Index) IndexPage(id string, p *page.Page) error

IndexPage adds or updates the page in the index

Jump to

Keyboard shortcuts

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