Documentation
¶
Overview ¶
Package bluge this package contains all things related to the bluge fulltext index engine. see: https://github.com/blugelabs/bluge
Index ¶
Constants ¶
View Source
const BlugeIndex = "bluge"
BlugeIndex name of the index engine
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Rootpath string `yaml:"rootpath"`
}
Config the config for the indexer
type Index ¶
type Index struct { Tenant string // contains filtered or unexported fields }
Index a tenant based single indexer
func (*Index) Index ¶
func (m *Index) Index(_ string, b model.BlobDescription) error
Index the index will index a single document, be aware this will only work in a single instance installation. the implementation will check, if the index writer is already opened and wait til it's closed, but only in a single instance of the blob storage. So in a multinode enviroment this will fail.
func (*Index) NewBatch ¶
func (m *Index) NewBatch() interfaces.IndexBatch
NewBatch creating a new batch job for indexing
type IndexBatch ¶
type IndexBatch struct {
// contains filtered or unexported fields
}
IndexBatch for bulk indexing
func (*IndexBatch) Add ¶
func (i *IndexBatch) Add(id string, b model.BlobDescription) error
Add adding a description to the batch
Click to show internal directories.
Click to hide internal directories.