Versions in this module Expand all Collapse all v1 v1.6.1 Jul 9, 2019 Changes in this version + type BleveServer struct + DeleteOnClose bool + Engine bleve.Index + IndexPath string + func NewBleveEngine(bleveIndexPath string, deleteOnClose ...bool) (*BleveServer, error) + func (s *BleveServer) Close() error + func (s *BleveServer) DeleteDocument(storeID string, docID string) error + func (s *BleveServer) IndexDocument(storeID string, doc *docstore.Document) error + func (s *BleveServer) Reset() error + func (s *BleveServer) SearchDocuments(storeID string, query *docstore.DocumentQuery, countOnly bool) ([]string, int64, error) + type BoltStore struct + DbPath string + DeleteOnClose bool + func NewBoltStore(fileName string, deleteOnClose ...bool) (*BoltStore, error) + func (b *BoltStore) Close() error + func (s *BoltStore) DeleteDocument(storeID string, docID string) error + func (s *BoltStore) GetDocument(storeID string, docId string) (*docstore.Document, error) + func (s *BoltStore) GetStore(tx *bolt.Tx, storeID string, mode string) (*bolt.Bucket, error) + func (s *BoltStore) ListDocuments(storeID string, query *docstore.DocumentQuery) (chan *docstore.Document, chan bool, error) + func (s *BoltStore) ListStores() ([]string, error) + func (s *BoltStore) PutDocument(storeID string, doc *docstore.Document) error + type Indexer interface + Close func() error + DeleteDocument func(storeID string, docID string) error + IndexDocument func(storeID string, doc *docstore.Document) error + Reset func() error + SearchDocuments func(storeID string, query *docstore.DocumentQuery, countOnly bool) ([]string, int64, error) + type Store interface + Close func() error + DeleteDocument func(storeID string, docID string) error + GetDocument func(storeID string, docId string) (*docstore.Document, error) + ListDocuments func(storeID string, query *docstore.DocumentQuery) (chan *docstore.Document, chan bool, error) + ListStores func() ([]string, error) + PutDocument func(storeID string, doc *docstore.Document) error Incompatible versions in this module v2.0.6+incompatible Apr 23, 2020