Documentation
¶
Overview ¶
Package commons implements the search engine
Index ¶
- Variables
- func NewBatch(ctx context.Context, nsProvider *meta.NsProvider, options BatchOptions, ...) indexer.Batch
- type BatchOptions
- type LocalBatch
- type QueryCodecProvider
- type Server
- func (s *Server) ClearIndex(ctx context.Context) error
- func (s *Server) Close(ctx context.Context) error
- func (s *Server) DeleteNode(c context.Context, n *tree.Node) error
- func (s *Server) Flush(ctx context.Context) error
- func (s *Server) IndexNode(c context.Context, n *tree.Node, reloadCore bool) error
- func (s *Server) SearchNodes(ctx context.Context, queryObject *tree.Query, from int32, size int32, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BatchPoolInit sync.Once
)
View Source
var (
BatchSize = 2000
)
Functions ¶
func NewBatch ¶
func NewBatch(ctx context.Context, nsProvider *meta.NsProvider, options BatchOptions, inputOpts ...indexer.BatchOption) indexer.Batch
Types ¶
type BatchOptions ¶
type BatchOptions struct {
// contains filtered or unexported fields
}
type LocalBatch ¶
LocalBatch avoids overflowing bleve index by batching indexation events (index/delete)
func (*LocalBatch) Flush ¶
func (b *LocalBatch) Flush(ctx context.Context, batchOpts ...indexer.BatchOption) error
func (*LocalBatch) LoadIndexableNode ¶
func (b *LocalBatch) LoadIndexableNode(indexNode *tree.IndexableNode, excludes map[string]struct{}) error
type QueryCodecProvider ¶
type QueryCodecProvider func(values configx.Values, metaProvider *meta.NsProvider) indexer.IndexCodex
Click to show internal directories.
Click to hide internal directories.