Documentation
¶
Index ¶
- type Indexer
- 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 TheIndexerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct { Context string Container string Component string // contains filtered or unexported fields }
Indexer type
func NewIndexer ¶
func NewIndexer(TheIndexerType TheIndexerType, indexerEngine adapter.IIndexerEngine) (*Indexer, error)
NewIndexer create new Indexer
func (*Indexer) CreateIndex ¶
CreateIndex represent CreateIndex
func (*Indexer) IndexExist ¶
IndexExist represent IndexExist
type TheIndexerType ¶
type TheIndexerType string
TheIndexerType represent TheIndexerType
const ( // ElasticSearchIndexer represent ElasticSearch Indexer ElasticSearchIndexer TheIndexerType = "elasticsearch" )
func NewIndexerEngine ¶
func NewIndexerEngine(TheIndexerType TheIndexerType, ieOptions adapter.IEOptions) (adapter.IIndexerEngine, TheIndexerType, error)
NewIndexerEngine new IndexerEngine
Click to show internal directories.
Click to hide internal directories.