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 IndexerType
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(indexerType IndexerType, indexerEngine adapter.IIndexerEngine) (*Indexer, error)
func (*Indexer) SearchIndexDoc ¶
type IndexerType ¶
type IndexerType string
IndexerType represent IndexerType
const (
ElasticSearchIndexer IndexerType = "elasticsearch"
)
func NewIndexerEngine ¶
func NewIndexerEngine(indexerType IndexerType, ieOptions adapter.IEOptions) (adapter.IIndexerEngine, IndexerType, error)
NewIndexerEngine new IndexerEngine
Click to show internal directories.
Click to hide internal directories.