Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionCreate = "create" ActionUpdate = "update" ActionDelete = "delete" ActionInsert = "insert" )
See http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/bulk.html
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkRequest ¶
type BulkResponse ¶
type BulkResponse struct { Code int Took int `json:"took"` Errors bool `json:"errors"` Items []map[string]*BulkResponseItem `json:"items"` }
type BulkResponseItem ¶
type Client ¶
type Client struct { Addr string Username string Password string // contains filtered or unexported fields }
func NewClient ¶
func NewClient(conf *ClientConfig) *Client
func (*Client) Bulk ¶
func (c *Client) Bulk(items []*BulkRequest) error
type ClientConfig ¶
type Response ¶
type Response struct { Code int ResponseItem }
Click to show internal directories.
Click to hide internal directories.