Documentation ¶
Overview ¶
Performs the flush operation on one or more indices.
Index ¶
- Variables
- type Flush
- func (r *Flush) AllowNoIndices(b bool) *Flush
- func (r Flush) Do(ctx context.Context) (*http.Response, error)
- func (r *Flush) ExpandWildcards(value string) *Flush
- func (r *Flush) Force(b bool) *Flush
- func (r *Flush) Header(key, value string) *Flush
- func (r *Flush) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r *Flush) IgnoreUnavailable(b bool) *Flush
- func (r *Flush) Index(v string) *Flush
- func (r Flush) IsSuccess(ctx context.Context) (bool, error)
- func (r *Flush) WaitIfOngoing(b bool) *Flush
- type NewFlush
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type Flush ¶
type Flush struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Flush
Performs the flush operation on one or more indices.
https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html
func (*Flush) AllowNoIndices ¶
AllowNoIndices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) API name: allow_no_indices
func (*Flush) ExpandWildcards ¶
ExpandWildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. API name: expand_wildcards
func (*Flush) Force ¶
Force Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal) API name: force
func (*Flush) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
func (*Flush) IgnoreUnavailable ¶
IgnoreUnavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) API name: ignore_unavailable
func (*Flush) Index ¶
Index A comma-separated list of index names; use `_all` or empty string for all indices API Name: index
func (Flush) IsSuccess ¶
IsSuccess allows to run a query with a context and retrieve the result as a boolean. This only exists for endpoints without a request payload and allows for quick control flow.
func (*Flush) WaitIfOngoing ¶
WaitIfOngoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is true. If set to false the flush will be skipped iff if another flush operation is already running. API name: wait_if_ongoing
type NewFlush ¶
type NewFlush func() *Flush
NewFlush type alias for index.
func NewFlushFunc ¶
func NewFlushFunc(tp elastictransport.Interface) NewFlush
NewFlushFunc returns a new instance of Flush with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.