search

package
v0.0.1-beta2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JsonHitsSearchResultSerializer = jsonSearchResultSerializer{}

Functions

func HitsSearchEngine

func HitsSearchEngine(tokens []string, indexable Indexer) entities.Iterator

func LinearSearchEngine

func LinearSearchEngine(tokens []string, indexable Indexer) entities.Iterator

func NoopAllSearchEngine

func NoopAllSearchEngine(tokens []string, indexable Indexer) entities.Iterator

func NoopZeroSearchEngine

func NoopZeroSearchEngine(tokens []string, indexable Indexer) entities.Iterator

Types

type Engine

type Engine func(tokens []string, indexable Indexer) entities.Iterator

type EngineType

type EngineType byte
const (
	NoopZero EngineType = iota
	NoopAll
	Hits
	SmartsHits
	Linear
)

type HitsSearchRow

type HitsSearchRow interface {
	entities.Row
	Hits() int
}

type Indexer

type Indexer interface {
	Len() int
	Indexed(key string) []int
	Document(index int) entities.Doc
}

Jump to

Keyboard shortcuts

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