Documentation ¶
Index ¶
- func CreateIndiceAlias(ctx context.Context, client *elastic.Client, element Element) (*elastic.AliasResult, error)
- type Command
- type Container
- type Element
- func (e *Element) DeleteByQueryService(client *elastic.Client) (*elastic.DeleteByQueryService, error)
- func (e *Element) IndicesCreateService(client *elastic.Client) (*elastic.IndicesCreateService, error)
- func (e *Element) IndicesDeleteService(client *elastic.Client) (*elastic.IndicesDeleteService, error)
- func (e *Element) RequestType() string
- func (e Element) Source() ([]string, error)
- func (e Element) String() string
- func (e *Element) UpdateByQueryService(client *elastic.Client) (*elastic.UpdateByQueryService, error)
- type SimpleQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct { Index string `json:"_index"` Routing string `json:"_routing,omitempty"` Parent string `json:"_parent,omitempty"` Type string `json:"_type,omitempty"` Id string `json:"_id,omitempty"` RetryOnConfict int `json:"_retry_on_conflict,omitempty"` Refresh string `json:"_refresh,omitempty"` }
func NewCommand ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer() *Container
type Element ¶
type Element struct { elastic.BulkableRequest Method string `json:"http_method"` Uri string `json:"uri"` Body interface{} `json:"body"` Routing string Parent string Refresh string WaitForCompletion bool RetryOnConflict int // only available for create, update Conflict string // only available for update_by_query Request elastic.BulkableRequest Index string DocType string DocId string Version int64 VersionType string }
func NewElement ¶
func (*Element) DeleteByQueryService ¶
func (*Element) IndicesCreateService ¶
func (*Element) IndicesDeleteService ¶
func (*Element) RequestType ¶
func (*Element) UpdateByQueryService ¶
type SimpleQuery ¶
type SimpleQuery struct {
// contains filtered or unexported fields
}
func NewSimpleQuery ¶
func NewSimpleQuery(body interface{}) *SimpleQuery
func (*SimpleQuery) Source ¶
func (q *SimpleQuery) Source() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.