Documentation
¶
Index ¶
- Constants
- func OpenPool(ctx context.Context, uu string) (storage.Storage, error)
- type BleveConfig
- type Indexer
- func (s *Indexer) As(i interface{}) bool
- func (s *Indexer) Close(ctx context.Context) error
- func (s *Indexer) CloseAndDrop(ctx context.Context) error
- func (s *Indexer) Count(ctx context.Context, qu interface{}) (int, error)
- func (s *Indexer) DeleteMany(ctx context.Context, qu interface{}) (int32, error)
- func (s *Indexer) DeleteOne(ctx context.Context, data interface{}) error
- func (s *Indexer) FindMany(ctx context.Context, qu interface{}, offset, limit int32, sortFields string, ...) (chan interface{}, error)
- func (s *Indexer) GetCodex() indexer.IndexCodex
- func (s *Indexer) ID() string
- func (s *Indexer) Init(ctx context.Context, conf configx.Values) error
- func (s *Indexer) InsertOne(ctx context.Context, data any) error
- func (s *Indexer) Metadata() map[string]string
- func (s *Indexer) MustBleveConfig(ctx context.Context) *BleveConfig
- func (s *Indexer) Name() string
- func (s *Indexer) NewBatch(ctx context.Context, opts ...indexer.BatchOption) (indexer.Batch, error)
- func (s *Indexer) Resync(ctx context.Context, logger func(string)) error
- func (s *Indexer) Search(ctx context.Context, qu *bleve.SearchRequest, res *[]index.Document) error
- func (s *Indexer) SetCodex(c indexer.IndexCodex)
- func (s *Indexer) Stats(ctx context.Context) map[string]interface{}
- func (s *Indexer) Truncate(ctx context.Context, max int64, logger func(string)) error
Constants ¶
View Source
const ( DefaultRotationSize = int64(200 * 1024 * 1024) DefaultBatchSize = int64(2000) DefaultMappingName = "docs" )
View Source
const ( BufferedChanSize = 10000 MinRotationSize = 68 * 1024 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BleveConfig ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer is the syslog specific implementation of the Log server
func (*Indexer) CloseAndDrop ¶
CloseAndDrop implements storage.Dropper
func (*Indexer) DeleteMany ¶
func (*Indexer) GetCodex ¶
func (s *Indexer) GetCodex() indexer.IndexCodex
func (*Indexer) MustBleveConfig ¶
func (s *Indexer) MustBleveConfig(ctx context.Context) *BleveConfig
func (*Indexer) Resync ¶
Resync creates a copy of current index. It has been originally used for switching analyze format from bleve to scorch.
func (*Indexer) SetCodex ¶
func (s *Indexer) SetCodex(c indexer.IndexCodex)
Click to show internal directories.
Click to hide internal directories.