index

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNestedFieldMapping

func NewNestedFieldMapping() *mapping.FieldMapping

func NewObjectFieldMapping

func NewObjectFieldMapping() *mapping.FieldMapping

func SearchTypeBool

func SearchTypeBool(searchType interface{}) *query.BooleanQuery

func SearchTypeFuzzy

func SearchTypeFuzzy(searchType interface{}) *query.FuzzyQuery

func SearchTypeMatch

func SearchTypeMatch(searchType interface{}) *query.MatchQuery

func SearchTypeMatchPhrase

func SearchTypeMatchPhrase(searchType interface{}) *query.PhraseQuery

func SearchTypeNumericRange

func SearchTypeNumericRange(searchType interface{}) *query.ConjunctionQuery

func SearchTypePrefix

func SearchTypePrefix(searchType interface{}) *query.PrefixQuery

func SearchTypeSimpleQueryString

func SearchTypeSimpleQueryString(searchType interface{}) *query.QueryStringQuery

Types

type Service

type Service struct {
	Shards map[int]*Shard
	// contains filtered or unexported fields
}

func NewService

func NewService(uuid string) *Service

func (*Service) CreateShard

func (s *Service) CreateShard(shardRouting state.ShardRouting)

func (*Service) Shard

func (s *Service) Shard(shardId int) (*Shard, bool)

func (*Service) UpdateMapping

func (s *Service) UpdateMapping(metadata state.IndexMetadata)

type Shard

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

func NewShard

func NewShard(shardRouting state.ShardRouting, shardPath string, mapping mapping.IndexMapping) *Shard

func (*Shard) Delete

func (s *Shard) Delete(id string) error

func (*Shard) Get

func (s *Shard) Get(id string) (map[string]interface{}, error)

func (*Shard) Index

func (s *Shard) Index(id string, fields map[string]interface{}) error

func (*Shard) Search

func (s *Shard) Search(searchRequest *bleve.SearchRequest) (*bleve.SearchResult, error)

func (*Shard) Stats

func (s *Shard) Stats() ShardStats

type ShardStats

type ShardStats struct {
	UserData     map[string]interface{}
	NumDocs      uint64
	ShardRouting state.ShardRouting
}

type Stats

type Stats struct {
	Name       string
	Uuid       string
	ShardStats []ShardStats
}

Jump to

Keyboard shortcuts

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