Documentation ¶
Index ¶
- type Client
- func (clnt *Client) CreateIndex(index string, body string)
- func (clnt *Client) IndexMany(index string, jsonArr []string, indexKey string)
- func (clnt *Client) IndexOne(index string, doc string, indexKey string)
- func (clnt *Client) MapIndexs(m []map[string]string)
- func (clnt *Client) Search(index string, query string) []map[string]interface{}
- type ClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ES *elasticsearch.Client
}
Client - Elastic client object
func (*Client) CreateIndex ¶ added in v1.0.11
type ClientOptions ¶
type ClientOptions struct {
URI string
}
ClientOptions - connection settings and options for elasticsearch
Click to show internal directories.
Click to hide internal directories.