Documentation ¶
Index ¶
- type AliasAction
- type AliasAdd
- type AliasAddAction
- type CatAliasesRequest
- type CatAllocationRequest
- type CatCountRequest
- type CatHealthRequest
- type CatIndex
- type CatIndicesRequest
- type CatShardsRequest
- type CreateRequest
- type DeleteRequest
- type IndicesCreateRequest
- type IndicesDeleteRequest
- type IndicesGetSettingsRequest
- type IndicesPutMappingRequest
- type IndicesPutSettingsRequest
- type Json
- type PerformRequestOptions
- type ReindexRequest
- type Response
- func (r *Response) Header() http.Header
- func (r *Response) JsonRawMessage() json.RawMessage
- func (p *Response) MarshalJSON() ([]byte, error)
- func (r *Response) ResByte() []byte
- func (r *Response) StatusCode() int
- func (r *Response) StatusErr() (err error)
- func (u *Response) UnmarshalJSON(b []byte) error
- type SearchRequest
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasAction ¶
type AliasAction struct {
Actions []AliasAddAction `json:"actions"`
}
type AliasAddAction ¶
type AliasAddAction struct {
Add AliasAdd `json:"add"`
}
type CatAliasesRequest ¶
type CatAllocationRequest ¶
type CatCountRequest ¶
type CatHealthRequest ¶
type CatIndex ¶
type CatIndex struct { Health string `json:"health"` Status string `json:"status"` Index string `json:"index"` Uuid string `json:"uuid"` Pri string `json:"pri"` Rep string `json:"rep"` DocsCount string `json:"docs.count"` DocsDeleted string `json:"docs.deleted"` StoreSize string `json:"store.size"` PriStoreSize string `json:"pri.store.size"` }
type CatIndicesRequest ¶
type CatIndicesRequest struct { Index []string Bytes string ExpandWildcards string Format string H []string Health string Help *bool IncludeUnloadedSegments *bool Local *bool MasterTimeout time.Duration Pri *bool S []string Time string V *bool Pretty bool Human bool ErrorTrace bool FilterPath []string Header http.Header // contains filtered or unexported fields }
type CatShardsRequest ¶
type CreateRequest ¶
type CreateRequest struct { Index string DocumentType string DocumentID string Body io.Reader Pipeline string Refresh string Routing string Timeout time.Duration Version *int VersionType string WaitForActiveShards string Pretty bool Human bool ErrorTrace bool FilterPath []string Header http.Header // contains filtered or unexported fields }
type DeleteRequest ¶
type DeleteRequest struct { Index string DocumentType string DocumentID string IfPrimaryTerm *int IfSeqNo *int Refresh string Routing string Timeout time.Duration Version *int VersionType string WaitForActiveShards string Pretty bool Human bool ErrorTrace bool FilterPath []string Header http.Header // contains filtered or unexported fields }
type IndicesCreateRequest ¶
type IndicesDeleteRequest ¶
type IndicesPutMappingRequest ¶
type IndicesPutMappingRequest struct { Index []string DocumentType string Body io.Reader AllowNoIndices *bool ExpandWildcards string IncludeTypeName *bool MasterTimeout time.Duration Timeout time.Duration WriteIndexOnly *bool Pretty bool Human bool ErrorTrace bool FilterPath []string Header http.Header }
type PerformRequestOptions ¶
type ReindexRequest ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func NewResponseNotErr ¶
func NewResponseNotErr() (res *Response)
func NewResponseWithProto ¶
func (*Response) JsonRawMessage ¶
func (r *Response) JsonRawMessage() json.RawMessage
func (*Response) MarshalJSON ¶
func (*Response) StatusCode ¶
func (*Response) UnmarshalJSON ¶
type SearchRequest ¶
type SearchRequest struct { Index []string DocumentType []string Body io.Reader AllowNoIndices *bool AllowPartialSearchResults *bool Analyzer string AnalyzeWildcard *bool BatchedReduceSize *int CcsMinimizeRoundtrips *bool DefaultOperator string Df string DocvalueFields []string ExpandWildcards string Explain *bool From *int IgnoreThrottled *bool Lenient *bool MaxConcurrentShardRequests *int MinCompatibleShardNode string Preference string PreFilterShardSize *int Query string RequestCache *bool RestTotalHitsAsInt *bool Routing []string Scroll time.Duration SearchType string SeqNoPrimaryTerm *bool Size *int Sort []string Source []string SourceExcludes []string SourceIncludes []string Stats []string StoredFields []string SuggestField string SuggestMode string SuggestSize *int SuggestText string TerminateAfter *int Timeout time.Duration TrackScores *bool TrackTotalHits interface{} TypedKeys *bool Version *bool Pretty bool Human bool ErrorTrace bool FilterPath []string Header http.Header }
type UpdateRequest ¶
type UpdateRequest struct { Index string DocumentType string DocumentID string Body io.Reader IfPrimaryTerm *int IfSeqNo *int Lang string Refresh string RequireAlias *bool RetryOnConflict *int Routing string Source []string SourceExcludes []string SourceIncludes []string Timeout time.Duration WaitForActiveShards string Pretty bool Human bool ErrorTrace bool FilterPath []string Header http.Header // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.