Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { IndexExists(index string) IndicesExistsService CreateIndex(index string) IndicesCreateService Index() IndexService Search(indices ...string) SearchService MultiSearch() MultiSearchService io.Closer }
Client is an abstraction for elastic.Client
type IndexService ¶
type IndexService interface { Index(index string) IndexService Type(typ string) IndexService Id(id string) IndexService BodyJson(body interface{}) IndexService Add() }
IndexService is an abstraction for elastic BulkService
type IndicesCreateService ¶
type IndicesCreateService interface { Body(mapping string) IndicesCreateService Do(ctx context.Context) (*elastic.IndicesCreateResult, error) }
IndicesCreateService is an abstraction for elastic.IndicesCreateService
type IndicesExistsService ¶
IndicesExistsService is an abstraction for elastic.IndicesExistsService
type MultiSearchService ¶
type MultiSearchService interface { Add(requests ...*elastic.SearchRequest) MultiSearchService Index(indices ...string) MultiSearchService Do(ctx context.Context) (*elastic.MultiSearchResult, error) }
MultiSearchService is an abstraction for elastic.MultiSearchService
type SearchService ¶
type SearchService interface { Type(typ string) SearchService Size(size int) SearchService Aggregation(name string, aggregation elastic.Aggregation) SearchService Query(query elastic.Query) SearchService Do(ctx context.Context) (*elastic.SearchResult, error) }
SearchService is an abstraction for elastic.SearchService
Click to show internal directories.
Click to hide internal directories.