Versions in this module Expand all Collapse all v0 v0.2.2 Aug 28, 2020 Changes in this version + type Indexer struct + Component string + Container string + Context string + func NewIndexer(indexerType IndexerType, indexerEngine adapter.IIndexerEngine) (*Indexer, error) + func (i *Indexer) CreateDoc(index string, id string, body io.Reader) error + func (i *Indexer) CreateIndex(index string, mapping io.Reader) error + func (i *Indexer) DeleteDoc(index string, id string) error + func (i *Indexer) DocExist(index string, id string) (bool, error) + func (i *Indexer) DropIndex(indexs []string) error + func (i *Indexer) GetDoc(index string, id string) ([]byte, error) + func (i *Indexer) GetEngine() interface{} + func (i *Indexer) IndexExist(indexs []string) (bool, error) + func (i *Indexer) Search(query io.Reader, prettify bool) ([]byte, error) + func (i *Indexer) SearchIndexDoc(index string, query io.Reader, size int, prettify bool) ([]byte, error) + func (i *Indexer) UpdateDoc(index string, id string, body io.Reader) error + type IndexerType string + const ElasticSearchIndexer + func NewIndexerEngine(indexerType IndexerType, ieOptions adapter.IEOptions) (adapter.IIndexerEngine, IndexerType, error)