Versions in this module Expand all Collapse all v0 v0.5.1 Jul 4, 2017 v0.5.0 Jul 1, 2017 Changes in this version + type Client interface + CreateIndex func(index string) IndicesCreateService + Index func() IndexService + IndexExists func(index string) IndicesExistsService + Search func(indices ...string) SearchService + type ESClient struct + func WrapESClient(client *elastic.Client) ESClient + func (c ESClient) CreateIndex(index string) IndicesCreateService + func (c ESClient) Index() IndexService + func (c ESClient) IndexExists(index string) IndicesExistsService + func (c ESClient) Search(indices ...string) SearchService + type ESIndexService struct + func WrapESIndexService(indexService *elastic.IndexService) ESIndexService + func (i ESIndexService) BodyJson(body interface{}) IndexService + func (i ESIndexService) Do(ctx context.Context) (*elastic.IndexResponse, error) + func (i ESIndexService) Id(id string) IndexService + func (i ESIndexService) Index(index string) IndexService + func (i ESIndexService) Type(typ string) IndexService + type ESIndicesCreateService struct + func WrapESIndicesCreateService(indicesCreateService *elastic.IndicesCreateService) ESIndicesCreateService + func (c ESIndicesCreateService) Body(mapping string) IndicesCreateService + func (c ESIndicesCreateService) Do(ctx context.Context) (*elastic.IndicesCreateResult, error) + type ESIndicesExistsService struct + func WrapESIndicesExistsService(indicesExistsService *elastic.IndicesExistsService) ESIndicesExistsService + func (e ESIndicesExistsService) Do(ctx context.Context) (bool, error) + type ESSearchService struct + func WrapESSearchService(searchService *elastic.SearchService) ESSearchService + func (s ESSearchService) Aggregation(name string, aggregation elastic.Aggregation) SearchService + func (s ESSearchService) Do(ctx context.Context) (*elastic.SearchResult, error) + func (s ESSearchService) Query(query elastic.Query) SearchService + func (s ESSearchService) Size(size int) SearchService + func (s ESSearchService) Type(typ string) SearchService + type IndexService interface + BodyJson func(body interface{}) IndexService + Do func(ctx context.Context) (*elastic.IndexResponse, error) + Id func(id string) IndexService + Index func(index string) IndexService + Type func(typ string) IndexService + type IndicesCreateService interface + Body func(mapping string) IndicesCreateService + Do func(ctx context.Context) (*elastic.IndicesCreateResult, error) + type IndicesExistsService interface + Do func(ctx context.Context) (bool, error) + type SearchService interface + Aggregation func(name string, aggregation elastic.Aggregation) SearchService + Do func(ctx context.Context) (*elastic.SearchResult, error) + Query func(query elastic.Query) SearchService + Size func(size int) SearchService + Type func(typ string) SearchService