Documentation ¶
Overview ¶
Package bleve implements the search engine using a Bleve indexer.
Index ¶
- Variables
- type Batch
- func (b *Batch) Delete(uuid string)
- func (b *Batch) Flush(index bleve.Index) error
- func (b *Batch) Index(i *tree.IndexableNode)
- func (b *Batch) LoadIndexableNode(indexNode *tree.IndexableNode, excludes map[string]struct{}) error
- func (b *Batch) NamespacesProvider() *meta.NamespacesProvider
- func (b *Batch) Size() int
- type BatchOptions
- type BleveServer
- func (s *BleveServer) ClearIndex(ctx context.Context) error
- func (s *BleveServer) Close() error
- func (s *BleveServer) DeleteNode(c context.Context, n *tree.Node) error
- func (s *BleveServer) IndexNode(c context.Context, n *tree.Node, reloadCore bool, excludes map[string]struct{}) error
- func (s *BleveServer) SearchNodes(c context.Context, queryObject *tree.Query, from int32, size int32, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BleveIndexPath = "" BatchSize = 2000 )
Functions ¶
This section is empty.
Types ¶
type Batch ¶ added in v1.5.0
Batch avoids overflowing bleve index by batching indexation events (index/delete)
func NewBatch ¶ added in v1.5.0
func NewBatch(options BatchOptions) *Batch
func (*Batch) Index ¶ added in v1.5.0
func (b *Batch) Index(i *tree.IndexableNode)
func (*Batch) LoadIndexableNode ¶ added in v1.5.0
func (b *Batch) LoadIndexableNode(indexNode *tree.IndexableNode, excludes map[string]struct{}) error
func (*Batch) NamespacesProvider ¶ added in v1.5.0
func (b *Batch) NamespacesProvider() *meta.NamespacesProvider
type BatchOptions ¶ added in v1.5.0
type BatchOptions struct {
IndexContent bool
}
type BleveServer ¶
type BleveServer struct { Router views.Handler Engine bleve.Index IndexContent bool // contains filtered or unexported fields }
func NewBleveEngine ¶
func NewBleveEngine(indexContent bool, configs map[string]interface{}) (*BleveServer, error)
func (*BleveServer) ClearIndex ¶
func (s *BleveServer) ClearIndex(ctx context.Context) error
func (*BleveServer) Close ¶
func (s *BleveServer) Close() error
func (*BleveServer) DeleteNode ¶
func (*BleveServer) SearchNodes ¶
Click to show internal directories.
Click to hide internal directories.