bleve

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bulker

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

func NewBulker

func NewBulker(index *Index, batchSize int) (*Bulker, error)

func (*Bulker) Close

func (b *Bulker) Close() error

func (*Bulker) Delete

func (b *Bulker) Delete(id string) error

func (*Bulker) Index

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

type Index

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

func NewIndex

func NewIndex(config *IndexConfig) (*Index, error)

func (*Index) Bulker

func (i *Index) Bulker(batchSize int) (*Bulker, error)

func (*Index) Close

func (i *Index) Close() error

func (*Index) Indexer

func (i *Index) Indexer() (*Indexer, error)

func (*Index) Searcher

func (i *Index) Searcher() (*Searcher, error)

func (*Index) SetLogger

func (i *Index) SetLogger(logger *log.Logger)

type IndexConfig

type IndexConfig struct {
	Path         string                    `json:"path,omitempty"`
	IndexMapping *mapping.IndexMappingImpl `json:"index_mapping,omitempty"`
	IndexType    string                    `json:"index_type,omitempty"`
	Kvstore      string                    `json:"kvstore,omitempty"`
	Kvconfig     map[string]interface{}    `json:"kvconfig,omitempty"`
}

func DefaultConfig

func DefaultConfig() *IndexConfig

type Indexer

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

func NewIndexer

func NewIndexer(index *Index) (*Indexer, error)

func (*Indexer) Close

func (i *Indexer) Close() error

func (*Indexer) Delete

func (i *Indexer) Delete(id string) error

func (*Indexer) Index

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

type Searcher

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

func NewSearcher

func NewSearcher(index *Index) (*Searcher, error)

func (*Searcher) Close

func (s *Searcher) Close() error

func (*Searcher) Search

func (s *Searcher) Search(request []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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