bleve

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TriggerIndex

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

TriggerIndex is implementation of index.TriggerIndex interface

func CreateTriggerIndex

func CreateTriggerIndex(mapping mapping.IndexMapping) (*TriggerIndex, error)

CreateTriggerIndex returns TriggerIndex by provided mapping

func (*TriggerIndex) Delete

func (index *TriggerIndex) Delete(triggerIDs []string) error

Delete removes triggerIDs from TriggerIndex

func (*TriggerIndex) GetCount

func (index *TriggerIndex) GetCount() (int64, error)

GetCount returns number of documents in TriggerIndex

func (*TriggerIndex) Search

func (index *TriggerIndex) Search(filterTags []string, searchString string, onlyErrors bool, page int64, size int64) (triggerIDs []string, total int64, err error)

Search gets search params and returns triggerIDs in following order: TriggerCheck.Score (desc) Relevance (asc) Trigger.Name (asc)

func (*TriggerIndex) Write

func (index *TriggerIndex) Write(checks []*moira.TriggerCheck) error

Write adds moira.TriggerChecks to TriggerIndex

Jump to

Keyboard shortcuts

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