Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2015 Changes in this version + const DefaultGzipEnabled + const DefaultHealthcheckEnabled + const DefaultHealthcheckInterval + const DefaultHealthcheckTimeout + const DefaultHealthcheckTimeoutStartup + const DefaultMaxRetries + const DefaultScheme + const DefaultSendGetBodyAs + const DefaultSnifferEnabled + const DefaultSnifferInterval + const DefaultSnifferTimeout + const DefaultSnifferTimeoutStartup + const DefaultURL + const Version + var EOS = errors.New("EOS") + var ErrNoClient = errors.New("no Elasticsearch node available") + var ErrNoScrollId = errors.New("no scrollId") + var ErrPluginNotFound = errors.New("elastic: plugin not found") + var ErrRetry = errors.New("cannot connect after several retries") + var ErrTimeout = errors.New("timeout") + func IsNotFound(err interface{}) bool + func IsTimeout(err interface{}) bool + func SetDecoder(decoder Decoder) func(*Client) error + func SetErrorLog(logger *log.Logger) func(*Client) error + func SetInfoLog(logger *log.Logger) func(*Client) error + func SetMaxRetries(maxRetries int) func(*Client) error + func SetSendGetBodyAs(httpMethod string) func(*Client) error + func SetTraceLog(logger *log.Logger) func(*Client) error + type Aggregation interface + Source func() (interface{}, error) + type AggregationBucketFilters struct + Buckets []*AggregationBucketKeyItem + Meta map[string]interface{} + NamedBuckets map[string]*AggregationBucketKeyItem + func (a *AggregationBucketFilters) UnmarshalJSON(data []byte) error + type AggregationBucketHistogramItem struct + DocCount int64 + Key int64 + KeyAsString *string + func (a *AggregationBucketHistogramItem) UnmarshalJSON(data []byte) error + type AggregationBucketHistogramItems struct + Buckets []*AggregationBucketHistogramItem + Meta map[string]interface{} + func (a *AggregationBucketHistogramItems) UnmarshalJSON(data []byte) error + type AggregationBucketKeyItem struct + DocCount int64 + Key interface{} + KeyNumber json.Number + func (a *AggregationBucketKeyItem) UnmarshalJSON(data []byte) error + type AggregationBucketKeyItems struct + Buckets []*AggregationBucketKeyItem + DocCountErrorUpperBound int64 + Meta map[string]interface{} + SumOfOtherDocCount int64 + func (a *AggregationBucketKeyItems) UnmarshalJSON(data []byte) error + type AggregationBucketKeyedRangeItems struct + Buckets map[string]*AggregationBucketRangeItem + DocCountErrorUpperBound int64 + Meta map[string]interface{} + SumOfOtherDocCount int64 + func (a *AggregationBucketKeyedRangeItems) UnmarshalJSON(data []byte) error + type AggregationBucketRangeItem struct + DocCount int64 + From *float64 + FromAsString string + Key string + To *float64 + ToAsString string + func (a *AggregationBucketRangeItem) UnmarshalJSON(data []byte) error + type AggregationBucketRangeItems struct + Buckets []*AggregationBucketRangeItem + DocCountErrorUpperBound int64 + Meta map[string]interface{} + SumOfOtherDocCount int64 + func (a *AggregationBucketRangeItems) UnmarshalJSON(data []byte) error + type AggregationBucketSignificantTerm struct + BgCount int64 + DocCount int64 + Key string + Score float64 + func (a *AggregationBucketSignificantTerm) UnmarshalJSON(data []byte) error + type AggregationBucketSignificantTerms struct + Buckets []*AggregationBucketSignificantTerm + DocCount int64 + Meta map[string]interface{} + func (a *AggregationBucketSignificantTerms) UnmarshalJSON(data []byte) error + type AggregationExtendedStatsMetric struct + Avg *float64 + Count int64 + Max *float64 + Meta map[string]interface{} + Min *float64 + StdDeviation *float64 + Sum *float64 + SumOfSquares *float64 + Variance *float64 + func (a *AggregationExtendedStatsMetric) UnmarshalJSON(data []byte) error + type AggregationGeoBoundsMetric struct + Bounds struct{ ... } + Meta map[string]interface{} + func (a *AggregationGeoBoundsMetric) UnmarshalJSON(data []byte) error + type AggregationPercentilesMetric struct + Meta map[string]interface{} + Values map[string]float64 + func (a *AggregationPercentilesMetric) UnmarshalJSON(data []byte) error + type AggregationPipelineBucketMetricValue struct + Keys []interface{} + Meta map[string]interface{} + Value *float64 + ValueAsString string + func (a *AggregationPipelineBucketMetricValue) UnmarshalJSON(data []byte) error + type AggregationPipelineDerivative struct + Meta map[string]interface{} + NormalizedValue *float64 + NormalizedValueAsString string + Value *float64 + ValueAsString string + func (a *AggregationPipelineDerivative) UnmarshalJSON(data []byte) error + type AggregationPipelineSimpleValue struct + Meta map[string]interface{} + Value *float64 + ValueAsString string + func (a *AggregationPipelineSimpleValue) UnmarshalJSON(data []byte) error + type AggregationSingleBucket struct + DocCount int64 + Meta map[string]interface{} + func (a *AggregationSingleBucket) UnmarshalJSON(data []byte) error + type AggregationStatsMetric struct + Avg *float64 + Count int64 + Max *float64 + Meta map[string]interface{} + Min *float64 + Sum *float64 + func (a *AggregationStatsMetric) UnmarshalJSON(data []byte) error + type AggregationTopHitsMetric struct + Hits *SearchHits + Meta map[string]interface{} + func (a *AggregationTopHitsMetric) UnmarshalJSON(data []byte) error + type AggregationValueMetric struct + Meta map[string]interface{} + Value *float64 + func (a *AggregationValueMetric) UnmarshalJSON(data []byte) error + type Aggregations map[string]*json.RawMessage + func (a Aggregations) Avg(name string) (*AggregationValueMetric, bool) + func (a Aggregations) AvgBucket(name string) (*AggregationPipelineSimpleValue, bool) + func (a Aggregations) BucketScript(name string) (*AggregationPipelineSimpleValue, bool) + func (a Aggregations) Cardinality(name string) (*AggregationValueMetric, bool) + func (a Aggregations) Children(name string) (*AggregationSingleBucket, bool) + func (a Aggregations) CumulativeSum(name string) (*AggregationPipelineSimpleValue, bool) + func (a Aggregations) DateHistogram(name string) (*AggregationBucketHistogramItems, bool) + func (a Aggregations) DateRange(name string) (*AggregationBucketRangeItems, bool) + func (a Aggregations) Derivative(name string) (*AggregationPipelineDerivative, bool) + func (a Aggregations) ExtendedStats(name string) (*AggregationExtendedStatsMetric, bool) + func (a Aggregations) Filter(name string) (*AggregationSingleBucket, bool) + func (a Aggregations) Filters(name string) (*AggregationBucketFilters, bool) + func (a Aggregations) GeoBounds(name string) (*AggregationGeoBoundsMetric, bool) + func (a Aggregations) GeoDistance(name string) (*AggregationBucketRangeItems, bool) + func (a Aggregations) GeoHash(name string) (*AggregationBucketKeyItems, bool) + func (a Aggregations) Global(name string) (*AggregationSingleBucket, bool) + func (a Aggregations) Histogram(name string) (*AggregationBucketHistogramItems, bool) + func (a Aggregations) IPv4Range(name string) (*AggregationBucketRangeItems, bool) + func (a Aggregations) KeyedRange(name string) (*AggregationBucketKeyedRangeItems, bool) + func (a Aggregations) Max(name string) (*AggregationValueMetric, bool) + func (a Aggregations) MaxBucket(name string) (*AggregationPipelineBucketMetricValue, bool) + func (a Aggregations) Min(name string) (*AggregationValueMetric, bool) + func (a Aggregations) MinBucket(name string) (*AggregationPipelineBucketMetricValue, bool) + func (a Aggregations) Missing(name string) (*AggregationSingleBucket, bool) + func (a Aggregations) MovAvg(name string) (*AggregationPipelineSimpleValue, bool) + func (a Aggregations) Nested(name string) (*AggregationSingleBucket, bool) + func (a Aggregations) PercentileRanks(name string) (*AggregationPercentilesMetric, bool) + func (a Aggregations) Percentiles(name string) (*AggregationPercentilesMetric, bool) + func (a Aggregations) Range(name string) (*AggregationBucketRangeItems, bool) + func (a Aggregations) ReverseNested(name string) (*AggregationSingleBucket, bool) + func (a Aggregations) SerialDiff(name string) (*AggregationPipelineSimpleValue, bool) + func (a Aggregations) SignificantTerms(name string) (*AggregationBucketSignificantTerms, bool) + func (a Aggregations) Stats(name string) (*AggregationStatsMetric, bool) + func (a Aggregations) Sum(name string) (*AggregationValueMetric, bool) + func (a Aggregations) SumBucket(name string) (*AggregationPipelineSimpleValue, bool) + func (a Aggregations) Terms(name string) (*AggregationBucketKeyItems, bool) + func (a Aggregations) TopHits(name string) (*AggregationTopHitsMetric, bool) + func (a Aggregations) ValueCount(name string) (*AggregationValueMetric, bool) + type AliasResult struct + Acknowledged bool + type AliasService struct + func NewAliasService(client *Client) *AliasService + func (s *AliasService) Add(indexName string, aliasName string) *AliasService + func (s *AliasService) AddWithFilter(indexName string, aliasName string, filter Query) *AliasService + func (s *AliasService) Do() (*AliasResult, error) + func (s *AliasService) Pretty(pretty bool) *AliasService + func (s *AliasService) Remove(indexName string, aliasName string) *AliasService + type AliasesResult struct + Indices map[string]indexResult + func (ar AliasesResult) IndicesByAlias(aliasName string) []string + type AliasesService struct + func NewAliasesService(client *Client) *AliasesService + func (s *AliasesService) Do() (*AliasesResult, error) + func (s *AliasesService) Index(indices ...string) *AliasesService + func (s *AliasesService) Pretty(pretty bool) *AliasesService + type AvgAggregation struct + func NewAvgAggregation() *AvgAggregation + func (a *AvgAggregation) Field(field string) *AvgAggregation + func (a *AvgAggregation) Format(format string) *AvgAggregation + func (a *AvgAggregation) Meta(metaData map[string]interface{}) *AvgAggregation + func (a *AvgAggregation) Script(script *Script) *AvgAggregation + func (a *AvgAggregation) Source() (interface{}, error) + func (a *AvgAggregation) SubAggregation(name string, subAggregation Aggregation) *AvgAggregation + type AvgBucketAggregation struct + func NewAvgBucketAggregation() *AvgBucketAggregation + func (a *AvgBucketAggregation) BucketsPath(bucketsPaths ...string) *AvgBucketAggregation + func (a *AvgBucketAggregation) Format(format string) *AvgBucketAggregation + func (a *AvgBucketAggregation) GapInsertZeros() *AvgBucketAggregation + func (a *AvgBucketAggregation) GapPolicy(gapPolicy string) *AvgBucketAggregation + func (a *AvgBucketAggregation) GapSkip() *AvgBucketAggregation + func (a *AvgBucketAggregation) Meta(metaData map[string]interface{}) *AvgBucketAggregation + func (a *AvgBucketAggregation) Source() (interface{}, error) + func (a *AvgBucketAggregation) SubAggregation(name string, subAggregation Aggregation) *AvgBucketAggregation + type BoolQuery struct + func NewBoolQuery() *BoolQuery + func (q *BoolQuery) AdjustPureNegative(adjustPureNegative bool) *BoolQuery + func (q *BoolQuery) Boost(boost float64) *BoolQuery + func (q *BoolQuery) DisableCoord(disableCoord bool) *BoolQuery + func (q *BoolQuery) Filter(filters ...Query) *BoolQuery + func (q *BoolQuery) MinimumNumberShouldMatch(minimumNumberShouldMatch int) *BoolQuery + func (q *BoolQuery) MinimumShouldMatch(minimumShouldMatch string) *BoolQuery + func (q *BoolQuery) Must(queries ...Query) *BoolQuery + func (q *BoolQuery) MustNot(queries ...Query) *BoolQuery + func (q *BoolQuery) QueryName(queryName string) *BoolQuery + func (q *BoolQuery) Should(queries ...Query) *BoolQuery + func (q *BoolQuery) Source() (interface{}, error) + type BoostingQuery struct + func NewBoostingQuery() *BoostingQuery + func (q *BoostingQuery) Boost(boost float64) *BoostingQuery + func (q *BoostingQuery) Negative(negative Query) *BoostingQuery + func (q *BoostingQuery) NegativeBoost(negativeBoost float64) *BoostingQuery + func (q *BoostingQuery) Positive(positive Query) *BoostingQuery + func (q *BoostingQuery) Source() (interface{}, error) + type BucketScriptAggregation struct + func NewBucketScriptAggregation() *BucketScriptAggregation + func (a *BucketScriptAggregation) AddBucketsPath(name, path string) *BucketScriptAggregation + func (a *BucketScriptAggregation) BucketsPathsMap(bucketsPathsMap map[string]string) *BucketScriptAggregation + func (a *BucketScriptAggregation) Format(format string) *BucketScriptAggregation + func (a *BucketScriptAggregation) GapInsertZeros() *BucketScriptAggregation + func (a *BucketScriptAggregation) GapPolicy(gapPolicy string) *BucketScriptAggregation + func (a *BucketScriptAggregation) GapSkip() *BucketScriptAggregation + func (a *BucketScriptAggregation) Meta(metaData map[string]interface{}) *BucketScriptAggregation + func (a *BucketScriptAggregation) Script(script *Script) *BucketScriptAggregation + func (a *BucketScriptAggregation) Source() (interface{}, error) + func (a *BucketScriptAggregation) SubAggregation(name string, subAggregation Aggregation) *BucketScriptAggregation + type BucketSelectorAggregation struct + func NewBucketSelectorAggregation() *BucketSelectorAggregation + func (a *BucketSelectorAggregation) AddBucketsPath(name, path string) *BucketSelectorAggregation + func (a *BucketSelectorAggregation) BucketsPathsMap(bucketsPathsMap map[string]string) *BucketSelectorAggregation + func (a *BucketSelectorAggregation) Format(format string) *BucketSelectorAggregation + func (a *BucketSelectorAggregation) GapInsertZeros() *BucketSelectorAggregation + func (a *BucketSelectorAggregation) GapPolicy(gapPolicy string) *BucketSelectorAggregation + func (a *BucketSelectorAggregation) GapSkip() *BucketSelectorAggregation + func (a *BucketSelectorAggregation) Meta(metaData map[string]interface{}) *BucketSelectorAggregation + func (a *BucketSelectorAggregation) Script(script *Script) *BucketSelectorAggregation + func (a *BucketSelectorAggregation) Source() (interface{}, error) + func (a *BucketSelectorAggregation) SubAggregation(name string, subAggregation Aggregation) *BucketSelectorAggregation + type BulkDeleteRequest struct + func NewBulkDeleteRequest() *BulkDeleteRequest + func (r *BulkDeleteRequest) Id(id string) *BulkDeleteRequest + func (r *BulkDeleteRequest) Index(index string) *BulkDeleteRequest + func (r *BulkDeleteRequest) Refresh(refresh bool) *BulkDeleteRequest + func (r *BulkDeleteRequest) Routing(routing string) *BulkDeleteRequest + func (r *BulkDeleteRequest) Source() ([]string, error) + func (r *BulkDeleteRequest) String() string + func (r *BulkDeleteRequest) Type(typ string) *BulkDeleteRequest + func (r *BulkDeleteRequest) Version(version int64) *BulkDeleteRequest + func (r *BulkDeleteRequest) VersionType(versionType string) *BulkDeleteRequest + type BulkIndexRequest struct + func NewBulkIndexRequest() *BulkIndexRequest + func (r *BulkIndexRequest) Doc(doc interface{}) *BulkIndexRequest + func (r *BulkIndexRequest) Id(id string) *BulkIndexRequest + func (r *BulkIndexRequest) Index(index string) *BulkIndexRequest + func (r *BulkIndexRequest) OpType(opType string) *BulkIndexRequest + func (r *BulkIndexRequest) Parent(parent string) *BulkIndexRequest + func (r *BulkIndexRequest) Refresh(refresh bool) *BulkIndexRequest + func (r *BulkIndexRequest) Routing(routing string) *BulkIndexRequest + func (r *BulkIndexRequest) Source() ([]string, error) + func (r *BulkIndexRequest) String() string + func (r *BulkIndexRequest) Timestamp(timestamp string) *BulkIndexRequest + func (r *BulkIndexRequest) Ttl(ttl int64) *BulkIndexRequest + func (r *BulkIndexRequest) Type(typ string) *BulkIndexRequest + func (r *BulkIndexRequest) Version(version int64) *BulkIndexRequest + func (r *BulkIndexRequest) VersionType(versionType string) *BulkIndexRequest + type BulkResponse struct + Errors bool + Items []map[string]*BulkResponseItem + Took int + func (r *BulkResponse) ByAction(action string) []*BulkResponseItem + func (r *BulkResponse) ById(id string) []*BulkResponseItem + func (r *BulkResponse) Created() []*BulkResponseItem + func (r *BulkResponse) Deleted() []*BulkResponseItem + func (r *BulkResponse) Failed() []*BulkResponseItem + func (r *BulkResponse) Indexed() []*BulkResponseItem + func (r *BulkResponse) Succeeded() []*BulkResponseItem + func (r *BulkResponse) Updated() []*BulkResponseItem + type BulkResponseItem struct + Error *ErrorDetails + Found bool + Id string + Index string + Status int + Type string + Version int + type BulkService struct + func NewBulkService(client *Client) *BulkService + func (s *BulkService) Add(r BulkableRequest) *BulkService + func (s *BulkService) Do() (*BulkResponse, error) + func (s *BulkService) Index(index string) *BulkService + func (s *BulkService) NumberOfActions() int + func (s *BulkService) Pretty(pretty bool) *BulkService + func (s *BulkService) Refresh(refresh bool) *BulkService + func (s *BulkService) Timeout(timeout string) *BulkService + func (s *BulkService) Type(_type string) *BulkService + type BulkUpdateRequest struct + func NewBulkUpdateRequest() *BulkUpdateRequest + func (r *BulkUpdateRequest) Doc(doc interface{}) *BulkUpdateRequest + func (r *BulkUpdateRequest) DocAsUpsert(docAsUpsert bool) *BulkUpdateRequest + func (r *BulkUpdateRequest) Id(id string) *BulkUpdateRequest + func (r *BulkUpdateRequest) Index(index string) *BulkUpdateRequest + func (r *BulkUpdateRequest) Parent(parent string) *BulkUpdateRequest + func (r *BulkUpdateRequest) Refresh(refresh bool) *BulkUpdateRequest + func (r *BulkUpdateRequest) RetryOnConflict(retryOnConflict int) *BulkUpdateRequest + func (r *BulkUpdateRequest) Routing(routing string) *BulkUpdateRequest + func (r *BulkUpdateRequest) Script(script *Script) *BulkUpdateRequest + func (r *BulkUpdateRequest) String() string + func (r *BulkUpdateRequest) Timestamp(timestamp string) *BulkUpdateRequest + func (r *BulkUpdateRequest) Ttl(ttl int64) *BulkUpdateRequest + func (r *BulkUpdateRequest) Type(typ string) *BulkUpdateRequest + func (r *BulkUpdateRequest) Upsert(doc interface{}) *BulkUpdateRequest + func (r *BulkUpdateRequest) Version(version int64) *BulkUpdateRequest + func (r *BulkUpdateRequest) VersionType(versionType string) *BulkUpdateRequest + func (r BulkUpdateRequest) Source() ([]string, error) + type BulkableRequest interface + Source func() ([]string, error) + type CandidateGenerator interface + Source func() (interface{}, error) + Type func() string + type CardinalityAggregation struct + func NewCardinalityAggregation() *CardinalityAggregation + func (a *CardinalityAggregation) Field(field string) *CardinalityAggregation + func (a *CardinalityAggregation) Format(format string) *CardinalityAggregation + func (a *CardinalityAggregation) Meta(metaData map[string]interface{}) *CardinalityAggregation + func (a *CardinalityAggregation) PrecisionThreshold(threshold int64) *CardinalityAggregation + func (a *CardinalityAggregation) Rehash(rehash bool) *CardinalityAggregation + func (a *CardinalityAggregation) Script(script *Script) *CardinalityAggregation + func (a *CardinalityAggregation) Source() (interface{}, error) + func (a *CardinalityAggregation) SubAggregation(name string, subAggregation Aggregation) *CardinalityAggregation + type ChildrenAggregation struct + func NewChildrenAggregation() *ChildrenAggregation + func (a *ChildrenAggregation) Meta(metaData map[string]interface{}) *ChildrenAggregation + func (a *ChildrenAggregation) Source() (interface{}, error) + func (a *ChildrenAggregation) SubAggregation(name string, subAggregation Aggregation) *ChildrenAggregation + func (a *ChildrenAggregation) Type(typ string) *ChildrenAggregation + type ClearScrollResponse struct + type ClearScrollService struct + func NewClearScrollService(client *Client) *ClearScrollService + func (s *ClearScrollService) Do() (*ClearScrollResponse, error) + func (s *ClearScrollService) Pretty(pretty bool) *ClearScrollService + func (s *ClearScrollService) ScrollId(scrollIds ...string) *ClearScrollService + func (s *ClearScrollService) Validate() error + type Client struct + func NewClient(options ...ClientOptionFunc) (*Client, error) + func (c *Client) Alias() *AliasService + func (c *Client) Aliases() *AliasesService + func (c *Client) Bulk() *BulkService + func (c *Client) ClearScroll(scrollIds ...string) *ClearScrollService + func (c *Client) CloseIndex(name string) *IndicesCloseService + func (c *Client) ClusterHealth() *ClusterHealthService + func (c *Client) ClusterState() *ClusterStateService + func (c *Client) ClusterStats() *ClusterStatsService + func (c *Client) Count(indices ...string) *CountService + func (c *Client) CreateIndex(name string) *IndicesCreateService + func (c *Client) Delete() *DeleteService + func (c *Client) DeleteByQuery(indices ...string) *DeleteByQueryService + func (c *Client) DeleteIndex(indices ...string) *IndicesDeleteService + func (c *Client) DeleteTemplate() *DeleteTemplateService + func (c *Client) ElasticsearchVersion(url string) (string, error) + func (c *Client) Exists() *ExistsService + func (c *Client) Explain(index, typ, id string) *ExplainService + func (c *Client) Flush(indices ...string) *IndicesFlushService + func (c *Client) Get() *GetService + func (c *Client) GetMapping() *GetMappingService + func (c *Client) GetTemplate() *GetTemplateService + func (c *Client) HasPlugin(name string) (bool, error) + func (c *Client) Index() *IndexService + func (c *Client) IndexDeleteTemplate(name string) *IndicesDeleteTemplateService + func (c *Client) IndexExists(indices ...string) *IndicesExistsService + func (c *Client) IndexGet(indices ...string) *IndicesGetService + func (c *Client) IndexGetSettings(indices ...string) *IndicesGetSettingsService + func (c *Client) IndexGetTemplate(names ...string) *IndicesGetTemplateService + func (c *Client) IndexNames() ([]string, error) + func (c *Client) IndexPutTemplate(name string) *IndicesPutTemplateService + func (c *Client) IndexStats(indices ...string) *IndicesStatsService + func (c *Client) IndexTemplateExists(name string) *IndicesExistsTemplateService + func (c *Client) IsRunning() bool + func (c *Client) Mget() *MgetService + func (c *Client) MultiGet() *MgetService + func (c *Client) MultiSearch() *MultiSearchService + func (c *Client) NodesInfo() *NodesInfoService + func (c *Client) OpenIndex(name string) *IndicesOpenService + func (c *Client) Optimize(indices ...string) *OptimizeService + func (c *Client) Percolate() *PercolateService + func (c *Client) PerformRequest(method, path string, params url.Values, body interface{}, ignoreErrors ...int) (*Response, error) + func (c *Client) Ping(url string) *PingService + func (c *Client) Plugins() ([]string, error) + func (c *Client) PutMapping() *PutMappingService + func (c *Client) PutTemplate() *PutTemplateService + func (c *Client) Refresh(indices ...string) *RefreshService + func (c *Client) Reindex(sourceIndex, targetIndex string) *Reindexer + func (c *Client) Scan(indices ...string) *ScanService + func (c *Client) Scroll(indices ...string) *ScrollService + func (c *Client) Search(indices ...string) *SearchService + func (c *Client) Start() + func (c *Client) Stop() + func (c *Client) String() string + func (c *Client) Suggest(indices ...string) *SuggestService + func (c *Client) TypeExists() *IndicesExistsTypeService + func (c *Client) Update() *UpdateService + func (c *Client) WaitForGreenStatus(timeout string) error + func (c *Client) WaitForStatus(status string, timeout string) error + func (c *Client) WaitForYellowStatus(timeout string) error + type ClientOptionFunc func(*Client) error + func SetBasicAuth(username, password string) ClientOptionFunc + func SetGzip(enabled bool) ClientOptionFunc + func SetHealthcheck(enabled bool) ClientOptionFunc + func SetHealthcheckInterval(interval time.Duration) ClientOptionFunc + func SetHealthcheckTimeout(timeout time.Duration) ClientOptionFunc + func SetHealthcheckTimeoutStartup(timeout time.Duration) ClientOptionFunc + func SetHttpClient(httpClient *http.Client) ClientOptionFunc + func SetRequiredPlugins(plugins ...string) ClientOptionFunc + func SetScheme(scheme string) ClientOptionFunc + func SetSniff(enabled bool) ClientOptionFunc + func SetSnifferInterval(interval time.Duration) ClientOptionFunc + func SetSnifferTimeout(timeout time.Duration) ClientOptionFunc + func SetSnifferTimeoutStartup(timeout time.Duration) ClientOptionFunc + func SetURL(urls ...string) ClientOptionFunc + type ClusterHealthResponse struct + ActivePrimaryShards int + ActiveShards int + ActiveShardsPercentAsNumber float64 + ClusterName string + DelayedUnassignedShards int + Indices map[string]*ClusterIndexHealth + InitializingShards int + NumberOfDataNodes int + NumberOfInFlightFetch int + NumberOfNodes int + NumberOfPendingTasks int + RelocatingShards int + Status string + TaskMaxWaitTimeInQueueInMillis int + TimedOut bool + UnassignedShards int + ValidationFailures []map[string][]string + type ClusterHealthService struct + func NewClusterHealthService(client *Client) *ClusterHealthService + func (s *ClusterHealthService) Do() (*ClusterHealthResponse, error) + func (s *ClusterHealthService) Index(indices ...string) *ClusterHealthService + func (s *ClusterHealthService) Level(level string) *ClusterHealthService + func (s *ClusterHealthService) Local(local bool) *ClusterHealthService + func (s *ClusterHealthService) MasterTimeout(masterTimeout string) *ClusterHealthService + func (s *ClusterHealthService) Pretty(pretty bool) *ClusterHealthService + func (s *ClusterHealthService) Timeout(timeout string) *ClusterHealthService + func (s *ClusterHealthService) Validate() error + func (s *ClusterHealthService) WaitForActiveShards(waitForActiveShards int) *ClusterHealthService + func (s *ClusterHealthService) WaitForGreenStatus() *ClusterHealthService + func (s *ClusterHealthService) WaitForNodes(waitForNodes string) *ClusterHealthService + func (s *ClusterHealthService) WaitForRelocatingShards(waitForRelocatingShards int) *ClusterHealthService + func (s *ClusterHealthService) WaitForStatus(waitForStatus string) *ClusterHealthService + func (s *ClusterHealthService) WaitForYellowStatus() *ClusterHealthService + type ClusterIndexHealth struct + ActivePrimaryShards int + ActiveShards int + InitializingShards int + NumberOfReplicas int + NumberOfShards int + RelocatingShards int + Shards map[string]*ClusterShardHealth + Status string + UnassignedShards int + ValidationFailures []string + type ClusterShardHealth struct + ActiveShards int + InitializingShards int + PrimaryActive bool + RelocatingShards int + Status string + UnassignedShards int + type ClusterStateResponse struct + Blocks map[string]*clusterBlocks + ClusterName string + Customs map[string]interface{} + MasterNode string + Metadata *clusterStateMetadata + Nodes map[string]*discoveryNode + RoutingNodes *clusterStateRoutingNode + RoutingTable map[string]*clusterStateRoutingTable + StateUUID string + Version int64 + type ClusterStateService struct + func NewClusterStateService(client *Client) *ClusterStateService + func (s *ClusterStateService) AllowNoIndices(allowNoIndices bool) *ClusterStateService + func (s *ClusterStateService) Do() (*ClusterStateResponse, error) + func (s *ClusterStateService) ExpandWildcards(expandWildcards string) *ClusterStateService + func (s *ClusterStateService) FlatSettings(flatSettings bool) *ClusterStateService + func (s *ClusterStateService) IgnoreUnavailable(ignoreUnavailable bool) *ClusterStateService + func (s *ClusterStateService) Index(indices ...string) *ClusterStateService + func (s *ClusterStateService) Local(local bool) *ClusterStateService + func (s *ClusterStateService) MasterTimeout(masterTimeout string) *ClusterStateService + func (s *ClusterStateService) Metric(metrics ...string) *ClusterStateService + func (s *ClusterStateService) Pretty(pretty bool) *ClusterStateService + func (s *ClusterStateService) Validate() error + type ClusterStatsIndices struct + Completion *ClusterStatsIndicesCompletion + Count int + Docs *ClusterStatsIndicesDocs + FieldData *ClusterStatsIndicesFieldData + FilterCache *ClusterStatsIndicesFilterCache + IdCache *ClusterStatsIndicesIdCache + Percolate *ClusterStatsIndicesPercolate + Segments *ClusterStatsIndicesSegments + Shards *ClusterStatsIndicesShards + Store *ClusterStatsIndicesStore + type ClusterStatsIndicesCompletion struct + Fields map[string]struct{ ... } + Size string + SizeInBytes int64 + type ClusterStatsIndicesDocs struct + Count int + Deleted int + type ClusterStatsIndicesFieldData struct + Evictions int64 + Fields map[string]struct{ ... } + MemorySize string + MemorySizeInBytes int64 + type ClusterStatsIndicesFilterCache struct + Evictions int64 + MemorySize string + MemorySizeInBytes int64 + type ClusterStatsIndicesIdCache struct + MemorySize string + MemorySizeInBytes int64 + type ClusterStatsIndicesPercolate struct + Current int64 + MemorySize string + MemorySizeInBytes int64 + Queries int64 + Time string + TimeInBytes int64 + Total int64 + type ClusterStatsIndicesSegments struct + Count int64 + FixedBitSet string + FixedBitSetInBytes int64 + IndexWriterMaxMemory string + IndexWriterMaxMemoryInBytes int64 + IndexWriterMemory string + IndexWriterMemoryInBytes int64 + Memory string + MemoryInBytes int64 + VersionMapMemory string + VersionMapMemoryInBytes int64 + type ClusterStatsIndicesShards struct + Index *ClusterStatsIndicesShardsIndex + Primaries int + Replication float64 + Total int + type ClusterStatsIndicesShardsIndex struct + Primaries *ClusterStatsIndicesShardsIndexIntMinMax + Replication *ClusterStatsIndicesShardsIndexFloat64MinMax + Shards *ClusterStatsIndicesShardsIndexIntMinMax + type ClusterStatsIndicesShardsIndexFloat64MinMax struct + Avg float64 + Max float64 + Min float64 + type ClusterStatsIndicesShardsIndexIntMinMax struct + Avg float64 + Max int + Min int + type ClusterStatsIndicesStore struct + Size string + SizeInBytes int64 + ThrottleTime string + ThrottleTimeInMillis int64 + type ClusterStatsNodes struct + Count *ClusterStatsNodesCounts + FS *ClusterStatsNodesFsStats + JVM *ClusterStatsNodesJvmStats + OS *ClusterStatsNodesOsStats + Plugins []*ClusterStatsNodesPlugin + Process *ClusterStatsNodesProcessStats + Versions []string + type ClusterStatsNodesCounts struct + Client int + DataOnly int + MasterData int + MasterOnly int + Total int + type ClusterStatsNodesFsStats struct + Available string + AvailableInBytes int64 + Dev string + DiskIOOp int64 + DiskIOSize string + DiskIOSizeInBytes int64 + DiskQueue string + DiskReadSize string + DiskReadSizeInBytes int64 + DiskReads int64 + DiskServiceTime string + DiskWriteSize string + DiskWriteSizeInBytes int64 + DiskWrites int64 + Free string + FreeInBytes int64 + Mount string + Path string + Total string + TotalInBytes int64 + type ClusterStatsNodesJvmStats struct + MaxUptime string + MaxUptimeInMillis int64 + Mem *ClusterStatsNodesJvmStatsMem + Threads int64 + Versions []*ClusterStatsNodesJvmStatsVersion + type ClusterStatsNodesJvmStatsMem struct + HeapMax string + HeapMaxInBytes int64 + HeapUsed string + HeapUsedInBytes int64 + type ClusterStatsNodesJvmStatsVersion struct + Count int + VMName string + VMVendor string + VMVersion string + Version string + type ClusterStatsNodesOsStats struct + AvailableProcessors int + CPU []*ClusterStatsNodesOsStatsCPU + Mem *ClusterStatsNodesOsStatsMem + type ClusterStatsNodesOsStatsCPU struct + CacheSize string + CacheSizeInBytes int64 + CoresPerSocket int + Count int + MHz int + Model string + TotalCores int + TotalSockets int + Vendor string + type ClusterStatsNodesOsStatsMem struct + Total string + TotalInBytes int64 + type ClusterStatsNodesPlugin struct + Description string + JVM bool + Name string + Site bool + URL string + Version string + type ClusterStatsNodesProcessStats struct + CPU *ClusterStatsNodesProcessStatsCPU + OpenFileDescriptors *ClusterStatsNodesProcessStatsOpenFileDescriptors + type ClusterStatsNodesProcessStatsCPU struct + Percent float64 + type ClusterStatsNodesProcessStatsOpenFileDescriptors struct + Avg int64 + Max int64 + Min int64 + type ClusterStatsResponse struct + ClusterName string + ClusterUUID string + Indices *ClusterStatsIndices + Nodes *ClusterStatsNodes + Status string + Timestamp int64 + type ClusterStatsService struct + func NewClusterStatsService(client *Client) *ClusterStatsService + func (s *ClusterStatsService) Do() (*ClusterStatsResponse, error) + func (s *ClusterStatsService) FlatSettings(flatSettings bool) *ClusterStatsService + func (s *ClusterStatsService) Human(human bool) *ClusterStatsService + func (s *ClusterStatsService) NodeId(nodeId []string) *ClusterStatsService + func (s *ClusterStatsService) Pretty(pretty bool) *ClusterStatsService + func (s *ClusterStatsService) Validate() error + type CommonTermsQuery struct + func NewCommonTermsQuery(name string, text interface{}) *CommonTermsQuery + func (q *CommonTermsQuery) Analyzer(analyzer string) *CommonTermsQuery + func (q *CommonTermsQuery) Boost(boost float64) *CommonTermsQuery + func (q *CommonTermsQuery) CutoffFrequency(f float64) *CommonTermsQuery + func (q *CommonTermsQuery) DisableCoord(disableCoord bool) *CommonTermsQuery + func (q *CommonTermsQuery) HighFreq(f float64) *CommonTermsQuery + func (q *CommonTermsQuery) HighFreqMinimumShouldMatch(minShouldMatch string) *CommonTermsQuery + func (q *CommonTermsQuery) HighFreqOperator(op string) *CommonTermsQuery + func (q *CommonTermsQuery) LowFreq(f float64) *CommonTermsQuery + func (q *CommonTermsQuery) LowFreqMinimumShouldMatch(minShouldMatch string) *CommonTermsQuery + func (q *CommonTermsQuery) LowFreqOperator(op string) *CommonTermsQuery + func (q *CommonTermsQuery) QueryName(queryName string) *CommonTermsQuery + func (q *CommonTermsQuery) Source() (interface{}, error) + type CompletionSuggester struct + func NewCompletionSuggester(name string) *CompletionSuggester + func (q *CompletionSuggester) Analyzer(analyzer string) *CompletionSuggester + func (q *CompletionSuggester) ContextQueries(queries ...SuggesterContextQuery) *CompletionSuggester + func (q *CompletionSuggester) ContextQuery(query SuggesterContextQuery) *CompletionSuggester + func (q *CompletionSuggester) Field(field string) *CompletionSuggester + func (q *CompletionSuggester) Name() string + func (q *CompletionSuggester) ShardSize(shardSize int) *CompletionSuggester + func (q *CompletionSuggester) Size(size int) *CompletionSuggester + func (q *CompletionSuggester) Source(includeName bool) (interface{}, error) + func (q *CompletionSuggester) Text(text string) *CompletionSuggester + type ConstantScoreQuery struct + func NewConstantScoreQuery(filter Query) *ConstantScoreQuery + func (q *ConstantScoreQuery) Boost(boost float64) *ConstantScoreQuery + func (q *ConstantScoreQuery) Source() (interface{}, error) + type CountResponse struct + Count int64 + Shards shardsInfo + type CountService struct + func NewCountService(client *Client) *CountService + func (s *CountService) AllowNoIndices(allowNoIndices bool) *CountService + func (s *CountService) AnalyzeWildcard(analyzeWildcard bool) *CountService + func (s *CountService) Analyzer(analyzer string) *CountService + func (s *CountService) BodyJson(body interface{}) *CountService + func (s *CountService) BodyString(body string) *CountService + func (s *CountService) DefaultOperator(defaultOperator string) *CountService + func (s *CountService) Df(df string) *CountService + func (s *CountService) Do() (int64, error) + func (s *CountService) ExpandWildcards(expandWildcards string) *CountService + func (s *CountService) IgnoreUnavailable(ignoreUnavailable bool) *CountService + func (s *CountService) Index(index ...string) *CountService + func (s *CountService) Lenient(lenient bool) *CountService + func (s *CountService) LowercaseExpandedTerms(lowercaseExpandedTerms bool) *CountService + func (s *CountService) MinScore(minScore interface{}) *CountService + func (s *CountService) Preference(preference string) *CountService + func (s *CountService) Pretty(pretty bool) *CountService + func (s *CountService) Q(q string) *CountService + func (s *CountService) Query(query Query) *CountService + func (s *CountService) Routing(routing string) *CountService + func (s *CountService) Type(typ ...string) *CountService + func (s *CountService) Validate() error + type CumulativeSumAggregation struct + func NewCumulativeSumAggregation() *CumulativeSumAggregation + func (a *CumulativeSumAggregation) BucketsPath(bucketsPaths ...string) *CumulativeSumAggregation + func (a *CumulativeSumAggregation) Format(format string) *CumulativeSumAggregation + func (a *CumulativeSumAggregation) Meta(metaData map[string]interface{}) *CumulativeSumAggregation + func (a *CumulativeSumAggregation) Source() (interface{}, error) + func (a *CumulativeSumAggregation) SubAggregation(name string, subAggregation Aggregation) *CumulativeSumAggregation + type DateHistogramAggregation struct + func NewDateHistogramAggregation() *DateHistogramAggregation + func (a *DateHistogramAggregation) ExtendedBoundsMax(max interface{}) *DateHistogramAggregation + func (a *DateHistogramAggregation) ExtendedBoundsMin(min interface{}) *DateHistogramAggregation + func (a *DateHistogramAggregation) Factor(factor float64) *DateHistogramAggregation + func (a *DateHistogramAggregation) Field(field string) *DateHistogramAggregation + func (a *DateHistogramAggregation) Format(format string) *DateHistogramAggregation + func (a *DateHistogramAggregation) Interval(interval string) *DateHistogramAggregation + func (a *DateHistogramAggregation) Meta(metaData map[string]interface{}) *DateHistogramAggregation + func (a *DateHistogramAggregation) MinDocCount(minDocCount int64) *DateHistogramAggregation + func (a *DateHistogramAggregation) Order(order string, asc bool) *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByAggregation(aggName string, asc bool) *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByAggregationAndMetric(aggName, metric string, asc bool) *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByCount(asc bool) *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByCountAsc() *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByCountDesc() *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByKey(asc bool) *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByKeyAsc() *DateHistogramAggregation + func (a *DateHistogramAggregation) OrderByKeyDesc() *DateHistogramAggregation + func (a *DateHistogramAggregation) PostOffset(postOffset int64) *DateHistogramAggregation + func (a *DateHistogramAggregation) PostZone(postZone string) *DateHistogramAggregation + func (a *DateHistogramAggregation) PreOffset(preOffset int64) *DateHistogramAggregation + func (a *DateHistogramAggregation) PreZone(preZone string) *DateHistogramAggregation + func (a *DateHistogramAggregation) PreZoneAdjustLargeInterval(preZoneAdjustLargeInterval bool) *DateHistogramAggregation + func (a *DateHistogramAggregation) Script(script *Script) *DateHistogramAggregation + func (a *DateHistogramAggregation) Source() (interface{}, error) + func (a *DateHistogramAggregation) SubAggregation(name string, subAggregation Aggregation) *DateHistogramAggregation + type DateRangeAggregation struct + func NewDateRangeAggregation() *DateRangeAggregation + func (a *DateRangeAggregation) AddRange(from, to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) AddRangeWithKey(key string, from, to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) AddUnboundedFrom(to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) AddUnboundedFromWithKey(key string, to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) AddUnboundedTo(from interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) AddUnboundedToWithKey(key string, from interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) Between(from, to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) BetweenWithKey(key string, from, to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) Field(field string) *DateRangeAggregation + func (a *DateRangeAggregation) Format(format string) *DateRangeAggregation + func (a *DateRangeAggregation) Gt(from interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) GtWithKey(key string, from interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) Keyed(keyed bool) *DateRangeAggregation + func (a *DateRangeAggregation) Lt(to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) LtWithKey(key string, to interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) Meta(metaData map[string]interface{}) *DateRangeAggregation + func (a *DateRangeAggregation) Script(script *Script) *DateRangeAggregation + func (a *DateRangeAggregation) Source() (interface{}, error) + func (a *DateRangeAggregation) SubAggregation(name string, subAggregation Aggregation) *DateRangeAggregation + func (a *DateRangeAggregation) Unmapped(unmapped bool) *DateRangeAggregation + type DateRangeAggregationEntry struct + From interface{} + Key string + To interface{} + type Decoder interface + Decode func(data []byte, v interface{}) error + type DefaultDecoder struct + func (u *DefaultDecoder) Decode(data []byte, v interface{}) error + type DeleteByQueryResult struct + Indices map[string]IndexDeleteByQueryResult + type DeleteByQueryService struct + func NewDeleteByQueryService(client *Client) *DeleteByQueryService + func (s *DeleteByQueryService) AllowNoIndices(allow bool) *DeleteByQueryService + func (s *DeleteByQueryService) Analyzer(analyzer string) *DeleteByQueryService + func (s *DeleteByQueryService) Consistency(consistency string) *DeleteByQueryService + func (s *DeleteByQueryService) DF(defaultField string) *DeleteByQueryService + func (s *DeleteByQueryService) DefaultField(defaultField string) *DeleteByQueryService + func (s *DeleteByQueryService) DefaultOperator(defaultOperator string) *DeleteByQueryService + func (s *DeleteByQueryService) Do() (*DeleteByQueryResult, error) + func (s *DeleteByQueryService) ExpandWildcards(expand string) *DeleteByQueryService + func (s *DeleteByQueryService) IgnoreUnavailable(ignore bool) *DeleteByQueryService + func (s *DeleteByQueryService) Index(indices ...string) *DeleteByQueryService + func (s *DeleteByQueryService) Pretty(pretty bool) *DeleteByQueryService + func (s *DeleteByQueryService) Q(query string) *DeleteByQueryService + func (s *DeleteByQueryService) Query(query Query) *DeleteByQueryService + func (s *DeleteByQueryService) QueryString(query string) *DeleteByQueryService + func (s *DeleteByQueryService) Replication(replication string) *DeleteByQueryService + func (s *DeleteByQueryService) Routing(routing string) *DeleteByQueryService + func (s *DeleteByQueryService) Timeout(timeout string) *DeleteByQueryService + func (s *DeleteByQueryService) Type(types ...string) *DeleteByQueryService + type DeleteResponse struct + Found bool + Id string + Index string + Type string + Version int64 + type DeleteService struct + func NewDeleteService(client *Client) *DeleteService + func (s *DeleteService) Consistency(consistency string) *DeleteService + func (s *DeleteService) Do() (*DeleteResponse, error) + func (s *DeleteService) Id(id string) *DeleteService + func (s *DeleteService) Index(index string) *DeleteService + func (s *DeleteService) Parent(parent string) *DeleteService + func (s *DeleteService) Pretty(pretty bool) *DeleteService + func (s *DeleteService) Refresh(refresh bool) *DeleteService + func (s *DeleteService) Replication(replication string) *DeleteService + func (s *DeleteService) Routing(routing string) *DeleteService + func (s *DeleteService) Timeout(timeout string) *DeleteService + func (s *DeleteService) Type(typ string) *DeleteService + func (s *DeleteService) Validate() error + func (s *DeleteService) Version(version interface{}) *DeleteService + func (s *DeleteService) VersionType(versionType string) *DeleteService + type DeleteTemplateResponse struct + Found bool + Id string + Index string + Type string + Version int + type DeleteTemplateService struct + func NewDeleteTemplateService(client *Client) *DeleteTemplateService + func (s *DeleteTemplateService) Do() (*DeleteTemplateResponse, error) + func (s *DeleteTemplateService) Id(id string) *DeleteTemplateService + func (s *DeleteTemplateService) Validate() error + func (s *DeleteTemplateService) Version(version int) *DeleteTemplateService + func (s *DeleteTemplateService) VersionType(versionType string) *DeleteTemplateService + type DerivativeAggregation struct + func NewDerivativeAggregation() *DerivativeAggregation + func (a *DerivativeAggregation) BucketsPath(bucketsPaths ...string) *DerivativeAggregation + func (a *DerivativeAggregation) Format(format string) *DerivativeAggregation + func (a *DerivativeAggregation) GapInsertZeros() *DerivativeAggregation + func (a *DerivativeAggregation) GapPolicy(gapPolicy string) *DerivativeAggregation + func (a *DerivativeAggregation) GapSkip() *DerivativeAggregation + func (a *DerivativeAggregation) Meta(metaData map[string]interface{}) *DerivativeAggregation + func (a *DerivativeAggregation) Source() (interface{}, error) + func (a *DerivativeAggregation) SubAggregation(name string, subAggregation Aggregation) *DerivativeAggregation + func (a *DerivativeAggregation) Unit(unit string) *DerivativeAggregation + type DirectCandidateGenerator struct + func NewDirectCandidateGenerator(field string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) Accuracy(accuracy float64) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) Field(field string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) MaxEdits(maxEdits int) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) MaxInspections(maxInspections int) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) MaxTermFreq(maxTermFreq float64) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) MinDocFreq(minDocFreq float64) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) MinWordLength(minWordLength int) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) PostFilter(postFilter string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) PreFilter(preFilter string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) PrefixLength(prefixLength int) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) Size(size int) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) Sort(sort string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) Source() (interface{}, error) + func (g *DirectCandidateGenerator) StringDistance(stringDistance string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) SuggestMode(suggestMode string) *DirectCandidateGenerator + func (g *DirectCandidateGenerator) Type() string + type DisMaxQuery struct + func NewDisMaxQuery() *DisMaxQuery + func (q *DisMaxQuery) Boost(boost float64) *DisMaxQuery + func (q *DisMaxQuery) Query(queries ...Query) *DisMaxQuery + func (q *DisMaxQuery) QueryName(queryName string) *DisMaxQuery + func (q *DisMaxQuery) Source() (interface{}, error) + func (q *DisMaxQuery) TieBreaker(tieBreaker float64) *DisMaxQuery + type EWMAMovAvgModel struct + func NewEWMAMovAvgModel() *EWMAMovAvgModel + func (m *EWMAMovAvgModel) Alpha(alpha float64) *EWMAMovAvgModel + func (m *EWMAMovAvgModel) Name() string + func (m *EWMAMovAvgModel) Settings() map[string]interface{} + type Error struct + Details *ErrorDetails + Status int + func (e *Error) Error() string + type ErrorDetails struct + CausedBy map[string]interface{} + FailedShards []map[string]interface{} + Grouped bool + Index string + Phase string + Reason string + ResourceId string + ResourceType string + RootCause []*ErrorDetails + Type string + type ExistsQuery struct + func NewExistsQuery(name string) *ExistsQuery + func (q *ExistsQuery) QueryName(queryName string) *ExistsQuery + func (q *ExistsQuery) Source() (interface{}, error) + type ExistsService struct + func NewExistsService(client *Client) *ExistsService + func (s *ExistsService) Do() (bool, error) + func (s *ExistsService) Id(id string) *ExistsService + func (s *ExistsService) Index(index string) *ExistsService + func (s *ExistsService) Parent(parent string) *ExistsService + func (s *ExistsService) Preference(preference string) *ExistsService + func (s *ExistsService) Pretty(pretty bool) *ExistsService + func (s *ExistsService) Realtime(realtime bool) *ExistsService + func (s *ExistsService) Refresh(refresh bool) *ExistsService + func (s *ExistsService) Routing(routing string) *ExistsService + func (s *ExistsService) Type(typ string) *ExistsService + func (s *ExistsService) Validate() error + type ExplainResponse struct + Explanation map[string]interface{} + Id string + Index string + Matched bool + Type string + type ExplainService struct + func NewExplainService(client *Client) *ExplainService + func (s *ExplainService) AnalyzeWildcard(analyzeWildcard bool) *ExplainService + func (s *ExplainService) Analyzer(analyzer string) *ExplainService + func (s *ExplainService) BodyJson(body interface{}) *ExplainService + func (s *ExplainService) BodyString(body string) *ExplainService + func (s *ExplainService) DefaultOperator(defaultOperator string) *ExplainService + func (s *ExplainService) Df(df string) *ExplainService + func (s *ExplainService) Do() (*ExplainResponse, error) + func (s *ExplainService) Fields(fields ...string) *ExplainService + func (s *ExplainService) Id(id string) *ExplainService + func (s *ExplainService) Index(index string) *ExplainService + func (s *ExplainService) Lenient(lenient bool) *ExplainService + func (s *ExplainService) LowercaseExpandedTerms(lowercaseExpandedTerms bool) *ExplainService + func (s *ExplainService) Parent(parent string) *ExplainService + func (s *ExplainService) Preference(preference string) *ExplainService + func (s *ExplainService) Pretty(pretty bool) *ExplainService + func (s *ExplainService) Q(q string) *ExplainService + func (s *ExplainService) Query(query Query) *ExplainService + func (s *ExplainService) Routing(routing string) *ExplainService + func (s *ExplainService) Source(source string) *ExplainService + func (s *ExplainService) Type(typ string) *ExplainService + func (s *ExplainService) Validate() error + func (s *ExplainService) XSource(xSource ...string) *ExplainService + func (s *ExplainService) XSourceExclude(xSourceExclude ...string) *ExplainService + func (s *ExplainService) XSourceInclude(xSourceInclude ...string) *ExplainService + type ExponentialDecayFunction struct + func NewExponentialDecayFunction() *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) Decay(decay float64) *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) FieldName(fieldName string) *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) GetWeight() *float64 + func (fn *ExponentialDecayFunction) MultiValueMode(mode string) *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) Name() string + func (fn *ExponentialDecayFunction) Offset(offset interface{}) *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) Origin(origin interface{}) *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) Scale(scale interface{}) *ExponentialDecayFunction + func (fn *ExponentialDecayFunction) Source() (interface{}, error) + func (fn *ExponentialDecayFunction) Weight(weight float64) *ExponentialDecayFunction + type ExtendedStatsAggregation struct + func NewExtendedStatsAggregation() *ExtendedStatsAggregation + func (a *ExtendedStatsAggregation) Field(field string) *ExtendedStatsAggregation + func (a *ExtendedStatsAggregation) Format(format string) *ExtendedStatsAggregation + func (a *ExtendedStatsAggregation) Meta(metaData map[string]interface{}) *ExtendedStatsAggregation + func (a *ExtendedStatsAggregation) Script(script *Script) *ExtendedStatsAggregation + func (a *ExtendedStatsAggregation) Source() (interface{}, error) + func (a *ExtendedStatsAggregation) SubAggregation(name string, subAggregation Aggregation) *ExtendedStatsAggregation + type FetchSourceContext struct + func NewFetchSourceContext(fetchSource bool) *FetchSourceContext + func (fsc *FetchSourceContext) Exclude(excludes ...string) *FetchSourceContext + func (fsc *FetchSourceContext) FetchSource() bool + func (fsc *FetchSourceContext) Include(includes ...string) *FetchSourceContext + func (fsc *FetchSourceContext) Query() url.Values + func (fsc *FetchSourceContext) SetFetchSource(fetchSource bool) + func (fsc *FetchSourceContext) Source() (interface{}, error) + func (fsc *FetchSourceContext) TransformSource(transformSource bool) *FetchSourceContext + type FieldSort struct + func NewFieldSort(fieldName string) FieldSort + func (s FieldSort) Asc() FieldSort + func (s FieldSort) Desc() FieldSort + func (s FieldSort) FieldName(fieldName string) FieldSort + func (s FieldSort) IgnoreUnmapped(ignoreUnmapped bool) FieldSort + func (s FieldSort) Missing(missing interface{}) FieldSort + func (s FieldSort) NestedFilter(nestedFilter Query) FieldSort + func (s FieldSort) NestedPath(nestedPath string) FieldSort + func (s FieldSort) Order(ascending bool) FieldSort + func (s FieldSort) SortMode(sortMode string) FieldSort + func (s FieldSort) Source() (interface{}, error) + func (s FieldSort) UnmappedType(typ string) FieldSort + type FieldValueFactorFunction struct + func NewFieldValueFactorFunction() *FieldValueFactorFunction + func (fn *FieldValueFactorFunction) Factor(factor float64) *FieldValueFactorFunction + func (fn *FieldValueFactorFunction) Field(field string) *FieldValueFactorFunction + func (fn *FieldValueFactorFunction) GetWeight() *float64 + func (fn *FieldValueFactorFunction) Missing(missing float64) *FieldValueFactorFunction + func (fn *FieldValueFactorFunction) Modifier(modifier string) *FieldValueFactorFunction + func (fn *FieldValueFactorFunction) Name() string + func (fn *FieldValueFactorFunction) Source() (interface{}, error) + func (fn *FieldValueFactorFunction) Weight(weight float64) *FieldValueFactorFunction + type FilterAggregation struct + func NewFilterAggregation() *FilterAggregation + func (a *FilterAggregation) Filter(filter Query) *FilterAggregation + func (a *FilterAggregation) Meta(metaData map[string]interface{}) *FilterAggregation + func (a *FilterAggregation) Source() (interface{}, error) + func (a *FilterAggregation) SubAggregation(name string, subAggregation Aggregation) *FilterAggregation + type FiltersAggregation struct + func NewFiltersAggregation() *FiltersAggregation + func (a *FiltersAggregation) Filter(filter Query) *FiltersAggregation + func (a *FiltersAggregation) Filters(filters ...Query) *FiltersAggregation + func (a *FiltersAggregation) Meta(metaData map[string]interface{}) *FiltersAggregation + func (a *FiltersAggregation) Source() (interface{}, error) + func (a *FiltersAggregation) SubAggregation(name string, subAggregation Aggregation) *FiltersAggregation + type FunctionScoreQuery struct + func NewFunctionScoreQuery() *FunctionScoreQuery + func (q *FunctionScoreQuery) Add(filter Query, scoreFunc ScoreFunction) *FunctionScoreQuery + func (q *FunctionScoreQuery) AddScoreFunc(scoreFunc ScoreFunction) *FunctionScoreQuery + func (q *FunctionScoreQuery) Boost(boost float64) *FunctionScoreQuery + func (q *FunctionScoreQuery) BoostMode(boostMode string) *FunctionScoreQuery + func (q *FunctionScoreQuery) Filter(filter Query) *FunctionScoreQuery + func (q *FunctionScoreQuery) MaxBoost(maxBoost float64) *FunctionScoreQuery + func (q *FunctionScoreQuery) MinScore(minScore float64) *FunctionScoreQuery + func (q *FunctionScoreQuery) Query(query Query) *FunctionScoreQuery + func (q *FunctionScoreQuery) ScoreMode(scoreMode string) *FunctionScoreQuery + func (q *FunctionScoreQuery) Source() (interface{}, error) + type Fuzziness struct + type FuzzyCompletionSuggester struct + func NewFuzzyCompletionSuggester(name string) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) Analyzer(analyzer string) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) ContextQueries(queries ...SuggesterContextQuery) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) ContextQuery(query SuggesterContextQuery) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) Field(field string) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) Fuzziness(fuzziness interface{}) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) FuzzyMinLength(minLength int) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) FuzzyPrefixLength(prefixLength int) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) FuzzyTranspositions(fuzzyTranspositions bool) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) Name() string + func (q *FuzzyCompletionSuggester) ShardSize(shardSize int) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) Size(size int) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) Source(includeName bool) (interface{}, error) + func (q *FuzzyCompletionSuggester) Text(text string) *FuzzyCompletionSuggester + func (q *FuzzyCompletionSuggester) UnicodeAware(unicodeAware bool) *FuzzyCompletionSuggester + type FuzzyQuery struct + func NewFuzzyQuery(name string, value interface{}) *FuzzyQuery + func (q *FuzzyQuery) Boost(boost float64) *FuzzyQuery + func (q *FuzzyQuery) Fuzziness(fuzziness interface{}) *FuzzyQuery + func (q *FuzzyQuery) MaxExpansions(maxExpansions int) *FuzzyQuery + func (q *FuzzyQuery) PrefixLength(prefixLength int) *FuzzyQuery + func (q *FuzzyQuery) QueryName(queryName string) *FuzzyQuery + func (q *FuzzyQuery) Rewrite(rewrite string) *FuzzyQuery + func (q *FuzzyQuery) Source() (interface{}, error) + func (q *FuzzyQuery) Transpositions(transpositions bool) *FuzzyQuery + type GaussDecayFunction struct + func NewGaussDecayFunction() *GaussDecayFunction + func (fn *GaussDecayFunction) Decay(decay float64) *GaussDecayFunction + func (fn *GaussDecayFunction) FieldName(fieldName string) *GaussDecayFunction + func (fn *GaussDecayFunction) GetWeight() *float64 + func (fn *GaussDecayFunction) MultiValueMode(mode string) *GaussDecayFunction + func (fn *GaussDecayFunction) Name() string + func (fn *GaussDecayFunction) Offset(offset interface{}) *GaussDecayFunction + func (fn *GaussDecayFunction) Origin(origin interface{}) *GaussDecayFunction + func (fn *GaussDecayFunction) Scale(scale interface{}) *GaussDecayFunction + func (fn *GaussDecayFunction) Source() (interface{}, error) + func (fn *GaussDecayFunction) Weight(weight float64) *GaussDecayFunction + type GeoBoundingBoxQuery struct + func NewGeoBoundingBoxQuery(name string) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) BottomLeft(bottom, left float64) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) BottomLeftFromGeoPoint(point *GeoPoint) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) BottomRight(bottom, right float64) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) BottomRightFromGeoPoint(point *GeoPoint) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) QueryName(queryName string) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) Source() (interface{}, error) + func (q *GeoBoundingBoxQuery) TopLeft(top, left float64) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) TopLeftFromGeoPoint(point *GeoPoint) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) TopRight(top, right float64) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) TopRightFromGeoPoint(point *GeoPoint) *GeoBoundingBoxQuery + func (q *GeoBoundingBoxQuery) Type(typ string) *GeoBoundingBoxQuery + type GeoBoundsAggregation struct + func NewGeoBoundsAggregation() *GeoBoundsAggregation + func (a *GeoBoundsAggregation) Field(field string) *GeoBoundsAggregation + func (a *GeoBoundsAggregation) Meta(metaData map[string]interface{}) *GeoBoundsAggregation + func (a *GeoBoundsAggregation) Script(script *Script) *GeoBoundsAggregation + func (a *GeoBoundsAggregation) Source() (interface{}, error) + func (a *GeoBoundsAggregation) SubAggregation(name string, subAggregation Aggregation) *GeoBoundsAggregation + func (a *GeoBoundsAggregation) WrapLongitude(wrapLongitude bool) *GeoBoundsAggregation + type GeoDistanceAggregation struct + func NewGeoDistanceAggregation() *GeoDistanceAggregation + func (a *GeoDistanceAggregation) AddRange(from, to interface{}) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) AddRangeWithKey(key string, from, to interface{}) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) AddUnboundedFrom(to float64) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) AddUnboundedFromWithKey(key string, to float64) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) AddUnboundedTo(from float64) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) AddUnboundedToWithKey(key string, from float64) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) Between(from, to interface{}) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) BetweenWithKey(key string, from, to interface{}) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) DistanceType(distanceType string) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) Field(field string) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) Meta(metaData map[string]interface{}) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) Point(latLon string) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) Source() (interface{}, error) + func (a *GeoDistanceAggregation) SubAggregation(name string, subAggregation Aggregation) *GeoDistanceAggregation + func (a *GeoDistanceAggregation) Unit(unit string) *GeoDistanceAggregation + type GeoDistanceQuery struct + func NewGeoDistanceQuery(name string) *GeoDistanceQuery + func (q *GeoDistanceQuery) Distance(distance string) *GeoDistanceQuery + func (q *GeoDistanceQuery) DistanceType(distanceType string) *GeoDistanceQuery + func (q *GeoDistanceQuery) GeoHash(geohash string) *GeoDistanceQuery + func (q *GeoDistanceQuery) GeoPoint(point *GeoPoint) *GeoDistanceQuery + func (q *GeoDistanceQuery) Lat(lat float64) *GeoDistanceQuery + func (q *GeoDistanceQuery) Lon(lon float64) *GeoDistanceQuery + func (q *GeoDistanceQuery) OptimizeBbox(optimizeBbox string) *GeoDistanceQuery + func (q *GeoDistanceQuery) Point(lat, lon float64) *GeoDistanceQuery + func (q *GeoDistanceQuery) QueryName(queryName string) *GeoDistanceQuery + func (q *GeoDistanceQuery) Source() (interface{}, error) + type GeoDistanceSort struct + func NewGeoDistanceSort(fieldName string) GeoDistanceSort + func (s GeoDistanceSort) Asc() GeoDistanceSort + func (s GeoDistanceSort) Desc() GeoDistanceSort + func (s GeoDistanceSort) FieldName(fieldName string) GeoDistanceSort + func (s GeoDistanceSort) GeoDistance(geoDistance string) GeoDistanceSort + func (s GeoDistanceSort) GeoHashes(geohashes ...string) GeoDistanceSort + func (s GeoDistanceSort) NestedFilter(nestedFilter Query) GeoDistanceSort + func (s GeoDistanceSort) NestedPath(nestedPath string) GeoDistanceSort + func (s GeoDistanceSort) Order(ascending bool) GeoDistanceSort + func (s GeoDistanceSort) Point(lat, lon float64) GeoDistanceSort + func (s GeoDistanceSort) Points(points ...*GeoPoint) GeoDistanceSort + func (s GeoDistanceSort) SortMode(sortMode string) GeoDistanceSort + func (s GeoDistanceSort) Source() (interface{}, error) + func (s GeoDistanceSort) Unit(unit string) GeoDistanceSort + type GeoPoint struct + Lat float64 + Lon float64 + func GeoPointFromLatLon(lat, lon float64) *GeoPoint + func GeoPointFromString(latLon string) (*GeoPoint, error) + func (pt *GeoPoint) Source() map[string]float64 + type GeoPolygonQuery struct + func NewGeoPolygonQuery(name string) *GeoPolygonQuery + func (q *GeoPolygonQuery) AddGeoPoint(point *GeoPoint) *GeoPolygonQuery + func (q *GeoPolygonQuery) AddPoint(lat, lon float64) *GeoPolygonQuery + func (q *GeoPolygonQuery) QueryName(queryName string) *GeoPolygonQuery + func (q *GeoPolygonQuery) Source() (interface{}, error) + type GetMappingService struct + func NewGetMappingService(client *Client) *GetMappingService + func (s *GetMappingService) AllowNoIndices(allowNoIndices bool) *GetMappingService + func (s *GetMappingService) Do() (map[string]interface{}, error) + func (s *GetMappingService) ExpandWildcards(expandWildcards string) *GetMappingService + func (s *GetMappingService) IgnoreUnavailable(ignoreUnavailable bool) *GetMappingService + func (s *GetMappingService) Index(indices ...string) *GetMappingService + func (s *GetMappingService) Local(local bool) *GetMappingService + func (s *GetMappingService) Pretty(pretty bool) *GetMappingService + func (s *GetMappingService) Type(types ...string) *GetMappingService + func (s *GetMappingService) Validate() error + type GetResult struct + Error *ErrorDetails + Fields map[string]interface{} + Found bool + Id string + Index string + Parent string + Routing string + Source *json.RawMessage + TTL int64 + Timestamp int64 + Type string + Uid string + Version *int64 + type GetService struct + func NewGetService(client *Client) *GetService + func (s *GetService) Do() (*GetResult, error) + func (s *GetService) FetchSource(fetchSource bool) *GetService + func (s *GetService) FetchSourceContext(fetchSourceContext *FetchSourceContext) *GetService + func (s *GetService) Fields(fields ...string) *GetService + func (s *GetService) Id(id string) *GetService + func (s *GetService) IgnoreErrorsOnGeneratedFields(ignore bool) *GetService + func (s *GetService) Index(index string) *GetService + func (s *GetService) Parent(parent string) *GetService + func (s *GetService) Preference(preference string) *GetService + func (s *GetService) Pretty(pretty bool) *GetService + func (s *GetService) Realtime(realtime bool) *GetService + func (s *GetService) Refresh(refresh bool) *GetService + func (s *GetService) Routing(routing string) *GetService + func (s *GetService) Type(typ string) *GetService + func (s *GetService) Validate() error + func (s *GetService) Version(version interface{}) *GetService + func (s *GetService) VersionType(versionType string) *GetService + type GetTemplateResponse struct + Template string + type GetTemplateService struct + func NewGetTemplateService(client *Client) *GetTemplateService + func (s *GetTemplateService) Do() (*GetTemplateResponse, error) + func (s *GetTemplateService) Id(id string) *GetTemplateService + func (s *GetTemplateService) Validate() error + func (s *GetTemplateService) Version(version interface{}) *GetTemplateService + func (s *GetTemplateService) VersionType(versionType string) *GetTemplateService + type GlobalAggregation struct + func NewGlobalAggregation() *GlobalAggregation + func (a *GlobalAggregation) Meta(metaData map[string]interface{}) *GlobalAggregation + func (a *GlobalAggregation) Source() (interface{}, error) + func (a *GlobalAggregation) SubAggregation(name string, subAggregation Aggregation) *GlobalAggregation + type HasChildQuery struct + func NewHasChildQuery(childType string, query Query) *HasChildQuery + func (q *HasChildQuery) Boost(boost float64) *HasChildQuery + func (q *HasChildQuery) InnerHit(innerHit *InnerHit) *HasChildQuery + func (q *HasChildQuery) MaxChildren(maxChildren int) *HasChildQuery + func (q *HasChildQuery) MinChildren(minChildren int) *HasChildQuery + func (q *HasChildQuery) QueryName(queryName string) *HasChildQuery + func (q *HasChildQuery) ScoreType(scoreType string) *HasChildQuery + func (q *HasChildQuery) ShortCircuitCutoff(shortCircuitCutoff int) *HasChildQuery + func (q *HasChildQuery) Source() (interface{}, error) + type HasParentQuery struct + func NewHasParentQuery(parentType string, query Query) *HasParentQuery + func (q *HasParentQuery) Boost(boost float64) *HasParentQuery + func (q *HasParentQuery) InnerHit(innerHit *InnerHit) *HasParentQuery + func (q *HasParentQuery) QueryName(queryName string) *HasParentQuery + func (q *HasParentQuery) ScoreType(scoreType string) *HasParentQuery + func (q *HasParentQuery) Source() (interface{}, error) + type Highlight struct + func NewHighlight() *Highlight + func (hl *Highlight) BoundaryChars(boundaryChars ...rune) *Highlight + func (hl *Highlight) BoundaryMaxScan(boundaryMaxScan int) *Highlight + func (hl *Highlight) Encoder(encoder string) *Highlight + func (hl *Highlight) Field(name string) *Highlight + func (hl *Highlight) Fields(fields ...*HighlighterField) *Highlight + func (hl *Highlight) ForceSource(forceSource bool) *Highlight + func (hl *Highlight) FragmentSize(fragmentSize int) *Highlight + func (hl *Highlight) Fragmenter(fragmenter string) *Highlight + func (hl *Highlight) HighlighQuery(highlightQuery Query) *Highlight + func (hl *Highlight) HighlightFilter(highlightFilter bool) *Highlight + func (hl *Highlight) HighlighterType(highlighterType string) *Highlight + func (hl *Highlight) NoMatchSize(noMatchSize int) *Highlight + func (hl *Highlight) NumOfFragments(numOfFragments int) *Highlight + func (hl *Highlight) Options(options map[string]interface{}) *Highlight + func (hl *Highlight) Order(order string) *Highlight + func (hl *Highlight) PostTags(postTags ...string) *Highlight + func (hl *Highlight) PreTags(preTags ...string) *Highlight + func (hl *Highlight) RequireFieldMatch(requireFieldMatch bool) *Highlight + func (hl *Highlight) Source() (interface{}, error) + func (hl *Highlight) TagsSchema(schemaName string) *Highlight + func (hl *Highlight) UseExplicitFieldOrder(useExplicitFieldOrder bool) *Highlight + type HighlighterField struct + Name string + func NewHighlighterField(name string) *HighlighterField + func (f *HighlighterField) BoundaryChars(boundaryChars ...rune) *HighlighterField + func (f *HighlighterField) BoundaryMaxScan(boundaryMaxScan int) *HighlighterField + func (f *HighlighterField) ForceSource(forceSource bool) *HighlighterField + func (f *HighlighterField) FragmentOffset(fragmentOffset int) *HighlighterField + func (f *HighlighterField) FragmentSize(fragmentSize int) *HighlighterField + func (f *HighlighterField) Fragmenter(fragmenter string) *HighlighterField + func (f *HighlighterField) HighlightFilter(highlightFilter bool) *HighlighterField + func (f *HighlighterField) HighlightQuery(highlightQuery Query) *HighlighterField + func (f *HighlighterField) HighlighterType(highlighterType string) *HighlighterField + func (f *HighlighterField) MatchedFields(matchedFields ...string) *HighlighterField + func (f *HighlighterField) NoMatchSize(noMatchSize int) *HighlighterField + func (f *HighlighterField) NumOfFragments(numOfFragments int) *HighlighterField + func (f *HighlighterField) Options(options map[string]interface{}) *HighlighterField + func (f *HighlighterField) Order(order string) *HighlighterField + func (f *HighlighterField) PhraseLimit(phraseLimit int) *HighlighterField + func (f *HighlighterField) PostTags(postTags ...string) *HighlighterField + func (f *HighlighterField) PreTags(preTags ...string) *HighlighterField + func (f *HighlighterField) RequireFieldMatch(requireFieldMatch bool) *HighlighterField + func (f *HighlighterField) Source() (interface{}, error) + type HistogramAggregation struct + func NewHistogramAggregation() *HistogramAggregation + func (a *HistogramAggregation) ExtendedBounds(min, max int64) *HistogramAggregation + func (a *HistogramAggregation) ExtendedBoundsMax(max int64) *HistogramAggregation + func (a *HistogramAggregation) ExtendedBoundsMin(min int64) *HistogramAggregation + func (a *HistogramAggregation) Field(field string) *HistogramAggregation + func (a *HistogramAggregation) Interval(interval int64) *HistogramAggregation + func (a *HistogramAggregation) Meta(metaData map[string]interface{}) *HistogramAggregation + func (a *HistogramAggregation) MinDocCount(minDocCount int64) *HistogramAggregation + func (a *HistogramAggregation) Offset(offset int64) *HistogramAggregation + func (a *HistogramAggregation) Order(order string, asc bool) *HistogramAggregation + func (a *HistogramAggregation) OrderByAggregation(aggName string, asc bool) *HistogramAggregation + func (a *HistogramAggregation) OrderByAggregationAndMetric(aggName, metric string, asc bool) *HistogramAggregation + func (a *HistogramAggregation) OrderByCount(asc bool) *HistogramAggregation + func (a *HistogramAggregation) OrderByCountAsc() *HistogramAggregation + func (a *HistogramAggregation) OrderByCountDesc() *HistogramAggregation + func (a *HistogramAggregation) OrderByKey(asc bool) *HistogramAggregation + func (a *HistogramAggregation) OrderByKeyAsc() *HistogramAggregation + func (a *HistogramAggregation) OrderByKeyDesc() *HistogramAggregation + func (a *HistogramAggregation) Script(script *Script) *HistogramAggregation + func (a *HistogramAggregation) Source() (interface{}, error) + func (a *HistogramAggregation) SubAggregation(name string, subAggregation Aggregation) *HistogramAggregation + type HoltLinearMovAvgModel struct + func NewHoltLinearMovAvgModel() *HoltLinearMovAvgModel + func (m *HoltLinearMovAvgModel) Alpha(alpha float64) *HoltLinearMovAvgModel + func (m *HoltLinearMovAvgModel) Beta(beta float64) *HoltLinearMovAvgModel + func (m *HoltLinearMovAvgModel) Name() string + func (m *HoltLinearMovAvgModel) Settings() map[string]interface{} + type HoltWintersMovAvgModel struct + func NewHoltWintersMovAvgModel() *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) Alpha(alpha float64) *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) Beta(beta float64) *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) Gamma(gamma float64) *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) Name() string + func (m *HoltWintersMovAvgModel) Pad(pad bool) *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) Period(period int) *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) SeasonalityType(typ string) *HoltWintersMovAvgModel + func (m *HoltWintersMovAvgModel) Settings() map[string]interface{} + type IdsQuery struct + func NewIdsQuery(types ...string) *IdsQuery + func (q *IdsQuery) Boost(boost float64) *IdsQuery + func (q *IdsQuery) Ids(ids ...string) *IdsQuery + func (q *IdsQuery) QueryName(queryName string) *IdsQuery + func (q *IdsQuery) Source() (interface{}, error) + type IndexDeleteByQueryResult struct + Shards shardsInfo + type IndexResponse struct + Created bool + Id string + Index string + Type string + Version int + type IndexService struct + func NewIndexService(client *Client) *IndexService + func (s *IndexService) BodyJson(body interface{}) *IndexService + func (s *IndexService) BodyString(body string) *IndexService + func (s *IndexService) Consistency(consistency string) *IndexService + func (s *IndexService) Do() (*IndexResponse, error) + func (s *IndexService) Id(id string) *IndexService + func (s *IndexService) Index(index string) *IndexService + func (s *IndexService) OpType(opType string) *IndexService + func (s *IndexService) Parent(parent string) *IndexService + func (s *IndexService) Pretty(pretty bool) *IndexService + func (s *IndexService) Refresh(refresh bool) *IndexService + func (s *IndexService) Replication(replication string) *IndexService + func (s *IndexService) Routing(routing string) *IndexService + func (s *IndexService) TTL(ttl string) *IndexService + func (s *IndexService) Timeout(timeout string) *IndexService + func (s *IndexService) Timestamp(timestamp string) *IndexService + func (s *IndexService) Ttl(ttl string) *IndexService + func (s *IndexService) Type(typ string) *IndexService + func (s *IndexService) Validate() error + func (s *IndexService) Version(version interface{}) *IndexService + func (s *IndexService) VersionType(versionType string) *IndexService + type IndexStats struct + Primaries *IndexStatsDetails + Total *IndexStatsDetails + type IndexStatsCompletion struct + Size string + SizeInBytes int64 + type IndexStatsDetails struct + Completion *IndexStatsCompletion + Docs *IndexStatsDocs + Fielddata *IndexStatsFielddata + FilterCache *IndexStatsFilterCache + Flush *IndexStatsFlush + Get *IndexStatsGet + IdCache *IndexStatsIdCache + Indexing *IndexStatsIndexing + Merges *IndexStatsMerges + Percolate *IndexStatsPercolate + QueryCache *IndexStatsQueryCache + Refresh *IndexStatsRefresh + Search *IndexStatsSearch + Segments *IndexStatsSegments + Store *IndexStatsStore + Suggest *IndexStatsSuggest + Translog *IndexStatsTranslog + Warmer *IndexStatsWarmer + type IndexStatsDocs struct + Count int64 + Deleted int64 + type IndexStatsFielddata struct + Evictions int64 + MemorySize string + MemorySizeInBytes int64 + type IndexStatsFilterCache struct + Evictions int64 + MemorySize string + MemorySizeInBytes int64 + type IndexStatsFlush struct + Total int64 + TotalTime string + TotalTimeInMillis int64 + type IndexStatsGet struct + Current int64 + ExistsTime string + ExistsTimeInMillis int64 + ExistsTotal int64 + GetTime string + MissingTime string + MissingTimeInMillis int64 + MissingTotal int64 + TimeInMillis int64 + Total int64 + type IndexStatsIdCache struct + MemorySize string + MemorySizeInBytes int64 + type IndexStatsIndexing struct + DeleteCurrent int64 + DeleteTime string + DeleteTimeInMillis int64 + DeleteTotal int64 + IndexCurrent int64 + IndexTime string + IndexTimeInMillis int64 + IndexTotal int64 + IsThrottled bool + NoopUpdateTotal int64 + ThrottleTime string + ThrottleTimeInMillis int64 + type IndexStatsMerges struct + Current int64 + CurrentDocs int64 + CurrentSize string + CurrentSizeInBytes int64 + Total int64 + TotalDocs int64 + TotalSize string + TotalSizeInBytes int64 + TotalTime string + TotalTimeInMillis int64 + type IndexStatsPercolate struct + Current int64 + GetTime string + MemorySize string + MemorySizeInBytes int64 + Queries int64 + TimeInMillis int64 + Total int64 + type IndexStatsQueryCache struct + Evictions int64 + HitCount int64 + MemorySize string + MemorySizeInBytes int64 + MissCount int64 + type IndexStatsRefresh struct + Total int64 + TotalTime string + TotalTimeInMillis int64 + type IndexStatsSearch struct + FetchCurrent int64 + FetchTime string + FetchTimeInMillis int64 + FetchTotal int64 + OpenContexts int64 + QueryCurrent int64 + QueryTime string + QueryTimeInMillis int64 + QueryTotal int64 + type IndexStatsSegments struct + Count int64 + FixedBitSetMemory string + FixedBitSetMemoryInBytes int64 + IndexWriterMaxMemory string + IndexWriterMaxMemoryInBytes int64 + IndexWriterMemory string + IndexWriterMemoryInBytes int64 + Memory string + MemoryInBytes int64 + VersionMapMemory string + VersionMapMemoryInBytes int64 + type IndexStatsStore struct + Size string + SizeInBytes int64 + ThrottleTime string + ThrottleTimeInMillis int64 + type IndexStatsSuggest struct + Current int64 + Time string + TimeInMillis int64 + Total int64 + type IndexStatsTranslog struct + Operations int64 + Size string + SizeInBytes int64 + type IndexStatsWarmer struct + Current int64 + Total int64 + TotalTime string + TotalTimeInMillis int64 + type IndicesCloseResponse struct + Acknowledged bool + type IndicesCloseService struct + func NewIndicesCloseService(client *Client) *IndicesCloseService + func (s *IndicesCloseService) AllowNoIndices(allowNoIndices bool) *IndicesCloseService + func (s *IndicesCloseService) Do() (*IndicesCloseResponse, error) + func (s *IndicesCloseService) ExpandWildcards(expandWildcards string) *IndicesCloseService + func (s *IndicesCloseService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesCloseService + func (s *IndicesCloseService) Index(index string) *IndicesCloseService + func (s *IndicesCloseService) MasterTimeout(masterTimeout string) *IndicesCloseService + func (s *IndicesCloseService) Pretty(pretty bool) *IndicesCloseService + func (s *IndicesCloseService) Timeout(timeout string) *IndicesCloseService + func (s *IndicesCloseService) Validate() error + type IndicesCreateResult struct + Acknowledged bool + type IndicesCreateService struct + func NewIndicesCreateService(client *Client) *IndicesCreateService + func (b *IndicesCreateService) Body(body string) *IndicesCreateService + func (b *IndicesCreateService) BodyJson(body interface{}) *IndicesCreateService + func (b *IndicesCreateService) BodyString(body string) *IndicesCreateService + func (b *IndicesCreateService) Do() (*IndicesCreateResult, error) + func (b *IndicesCreateService) Index(index string) *IndicesCreateService + func (b *IndicesCreateService) Pretty(pretty bool) *IndicesCreateService + func (s *IndicesCreateService) MasterTimeout(masterTimeout string) *IndicesCreateService + func (s *IndicesCreateService) Timeout(timeout string) *IndicesCreateService + type IndicesDeleteResponse struct + Acknowledged bool + type IndicesDeleteService struct + func NewIndicesDeleteService(client *Client) *IndicesDeleteService + func (s *IndicesDeleteService) Do() (*IndicesDeleteResponse, error) + func (s *IndicesDeleteService) Index(index []string) *IndicesDeleteService + func (s *IndicesDeleteService) MasterTimeout(masterTimeout string) *IndicesDeleteService + func (s *IndicesDeleteService) Pretty(pretty bool) *IndicesDeleteService + func (s *IndicesDeleteService) Timeout(timeout string) *IndicesDeleteService + func (s *IndicesDeleteService) Validate() error + type IndicesDeleteTemplateResponse struct + Acknowledged bool + type IndicesDeleteTemplateService struct + func NewIndicesDeleteTemplateService(client *Client) *IndicesDeleteTemplateService + func (s *IndicesDeleteTemplateService) Do() (*IndicesDeleteTemplateResponse, error) + func (s *IndicesDeleteTemplateService) MasterTimeout(masterTimeout string) *IndicesDeleteTemplateService + func (s *IndicesDeleteTemplateService) Name(name string) *IndicesDeleteTemplateService + func (s *IndicesDeleteTemplateService) Pretty(pretty bool) *IndicesDeleteTemplateService + func (s *IndicesDeleteTemplateService) Timeout(timeout string) *IndicesDeleteTemplateService + func (s *IndicesDeleteTemplateService) Validate() error + type IndicesExistsService struct + func NewIndicesExistsService(client *Client) *IndicesExistsService + func (s *IndicesExistsService) AllowNoIndices(allowNoIndices bool) *IndicesExistsService + func (s *IndicesExistsService) Do() (bool, error) + func (s *IndicesExistsService) ExpandWildcards(expandWildcards string) *IndicesExistsService + func (s *IndicesExistsService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesExistsService + func (s *IndicesExistsService) Index(index []string) *IndicesExistsService + func (s *IndicesExistsService) Local(local bool) *IndicesExistsService + func (s *IndicesExistsService) Pretty(pretty bool) *IndicesExistsService + func (s *IndicesExistsService) Validate() error + type IndicesExistsTemplateService struct + func NewIndicesExistsTemplateService(client *Client) *IndicesExistsTemplateService + func (s *IndicesExistsTemplateService) Do() (bool, error) + func (s *IndicesExistsTemplateService) Local(local bool) *IndicesExistsTemplateService + func (s *IndicesExistsTemplateService) Name(name string) *IndicesExistsTemplateService + func (s *IndicesExistsTemplateService) Pretty(pretty bool) *IndicesExistsTemplateService + func (s *IndicesExistsTemplateService) Validate() error + type IndicesExistsTypeService struct + func NewIndicesExistsTypeService(client *Client) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) AllowNoIndices(allowNoIndices bool) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) Do() (bool, error) + func (s *IndicesExistsTypeService) ExpandWildcards(expandWildcards string) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) Index(indices ...string) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) Local(local bool) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) Pretty(pretty bool) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) Type(types ...string) *IndicesExistsTypeService + func (s *IndicesExistsTypeService) Validate() error + type IndicesFlushResponse struct + Shards shardsInfo + type IndicesFlushService struct + func NewIndicesFlushService(client *Client) *IndicesFlushService + func (s *IndicesFlushService) AllowNoIndices(allowNoIndices bool) *IndicesFlushService + func (s *IndicesFlushService) Do() (*IndicesFlushResponse, error) + func (s *IndicesFlushService) ExpandWildcards(expandWildcards string) *IndicesFlushService + func (s *IndicesFlushService) Force(force bool) *IndicesFlushService + func (s *IndicesFlushService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesFlushService + func (s *IndicesFlushService) Index(indices ...string) *IndicesFlushService + func (s *IndicesFlushService) Pretty(pretty bool) *IndicesFlushService + func (s *IndicesFlushService) Validate() error + func (s *IndicesFlushService) WaitIfOngoing(waitIfOngoing bool) *IndicesFlushService + type IndicesGetResponse struct + Aliases map[string]interface{} + Mappings map[string]interface{} + Settings map[string]interface{} + Warmers map[string]interface{} + type IndicesGetService struct + func NewIndicesGetService(client *Client) *IndicesGetService + func (s *IndicesGetService) AllowNoIndices(allowNoIndices bool) *IndicesGetService + func (s *IndicesGetService) Do() (map[string]*IndicesGetResponse, error) + func (s *IndicesGetService) ExpandWildcards(expandWildcards string) *IndicesGetService + func (s *IndicesGetService) Feature(features ...string) *IndicesGetService + func (s *IndicesGetService) Human(human bool) *IndicesGetService + func (s *IndicesGetService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesGetService + func (s *IndicesGetService) Index(indices ...string) *IndicesGetService + func (s *IndicesGetService) Local(local bool) *IndicesGetService + func (s *IndicesGetService) Pretty(pretty bool) *IndicesGetService + func (s *IndicesGetService) Validate() error + type IndicesGetSettingsResponse struct + Settings map[string]interface{} + type IndicesGetSettingsService struct + func NewIndicesGetSettingsService(client *Client) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) AllowNoIndices(allowNoIndices bool) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) Do() (map[string]*IndicesGetSettingsResponse, error) + func (s *IndicesGetSettingsService) ExpandWildcards(expandWildcards string) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) FlatSettings(flatSettings bool) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) Index(indices ...string) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) Local(local bool) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) Name(name ...string) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) Pretty(pretty bool) *IndicesGetSettingsService + func (s *IndicesGetSettingsService) Validate() error + type IndicesGetTemplateResponse struct + Aliases map[string]interface{} + Mappings map[string]interface{} + Order int + Settings map[string]interface{} + Template string + type IndicesGetTemplateService struct + func NewIndicesGetTemplateService(client *Client) *IndicesGetTemplateService + func (s *IndicesGetTemplateService) Do() (map[string]*IndicesGetTemplateResponse, error) + func (s *IndicesGetTemplateService) FlatSettings(flatSettings bool) *IndicesGetTemplateService + func (s *IndicesGetTemplateService) Local(local bool) *IndicesGetTemplateService + func (s *IndicesGetTemplateService) Name(name ...string) *IndicesGetTemplateService + func (s *IndicesGetTemplateService) Pretty(pretty bool) *IndicesGetTemplateService + func (s *IndicesGetTemplateService) Validate() error + type IndicesOpenResponse struct + Acknowledged bool + type IndicesOpenService struct + func NewIndicesOpenService(client *Client) *IndicesOpenService + func (s *IndicesOpenService) AllowNoIndices(allowNoIndices bool) *IndicesOpenService + func (s *IndicesOpenService) Do() (*IndicesOpenResponse, error) + func (s *IndicesOpenService) ExpandWildcards(expandWildcards string) *IndicesOpenService + func (s *IndicesOpenService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesOpenService + func (s *IndicesOpenService) Index(index string) *IndicesOpenService + func (s *IndicesOpenService) MasterTimeout(masterTimeout string) *IndicesOpenService + func (s *IndicesOpenService) Pretty(pretty bool) *IndicesOpenService + func (s *IndicesOpenService) Timeout(timeout string) *IndicesOpenService + func (s *IndicesOpenService) Validate() error + type IndicesPutTemplateResponse struct + Acknowledged bool + type IndicesPutTemplateService struct + func NewIndicesPutTemplateService(client *Client) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) BodyJson(body interface{}) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) BodyString(body string) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Create(create bool) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Do() (*IndicesPutTemplateResponse, error) + func (s *IndicesPutTemplateService) FlatSettings(flatSettings bool) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) MasterTimeout(masterTimeout string) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Name(name string) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Order(order interface{}) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Pretty(pretty bool) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Timeout(timeout string) *IndicesPutTemplateService + func (s *IndicesPutTemplateService) Validate() error + type IndicesQuery struct + func NewIndicesQuery(query Query, indices ...string) *IndicesQuery + func (q *IndicesQuery) NoMatchQuery(query Query) *IndicesQuery + func (q *IndicesQuery) NoMatchQueryType(typ string) *IndicesQuery + func (q *IndicesQuery) QueryName(queryName string) *IndicesQuery + func (q *IndicesQuery) Source() (interface{}, error) + type IndicesStatsResponse struct + All *IndexStats + Indices map[string]*IndexStats + Shards shardsInfo + type IndicesStatsService struct + func NewIndicesStatsService(client *Client) *IndicesStatsService + func (s *IndicesStatsService) CompletionFields(completionFields ...string) *IndicesStatsService + func (s *IndicesStatsService) Do() (*IndicesStatsResponse, error) + func (s *IndicesStatsService) FielddataFields(fielddataFields ...string) *IndicesStatsService + func (s *IndicesStatsService) Fields(fields ...string) *IndicesStatsService + func (s *IndicesStatsService) Groups(groups ...string) *IndicesStatsService + func (s *IndicesStatsService) Human(human bool) *IndicesStatsService + func (s *IndicesStatsService) Index(indices ...string) *IndicesStatsService + func (s *IndicesStatsService) Level(level string) *IndicesStatsService + func (s *IndicesStatsService) Metric(metric ...string) *IndicesStatsService + func (s *IndicesStatsService) Pretty(pretty bool) *IndicesStatsService + func (s *IndicesStatsService) Type(types ...string) *IndicesStatsService + func (s *IndicesStatsService) Validate() error + type InnerHit struct + func NewInnerHit() *InnerHit + func (hit *InnerHit) Explain(explain bool) *InnerHit + func (hit *InnerHit) FetchSource(fetchSource bool) *InnerHit + func (hit *InnerHit) FetchSourceContext(fetchSourceContext *FetchSourceContext) *InnerHit + func (hit *InnerHit) Field(fieldName string) *InnerHit + func (hit *InnerHit) FieldDataField(fieldDataField string) *InnerHit + func (hit *InnerHit) FieldDataFields(fieldDataFields ...string) *InnerHit + func (hit *InnerHit) Fields(fieldNames ...string) *InnerHit + func (hit *InnerHit) From(from int) *InnerHit + func (hit *InnerHit) Highlight(highlight *Highlight) *InnerHit + func (hit *InnerHit) Highlighter() *Highlight + func (hit *InnerHit) Name(name string) *InnerHit + func (hit *InnerHit) NoFields() *InnerHit + func (hit *InnerHit) Path(path string) *InnerHit + func (hit *InnerHit) Query(query Query) *InnerHit + func (hit *InnerHit) ScriptField(scriptField *ScriptField) *InnerHit + func (hit *InnerHit) ScriptFields(scriptFields ...*ScriptField) *InnerHit + func (hit *InnerHit) Size(size int) *InnerHit + func (hit *InnerHit) Sort(field string, ascending bool) *InnerHit + func (hit *InnerHit) SortBy(sorter ...Sorter) *InnerHit + func (hit *InnerHit) SortWithInfo(info SortInfo) *InnerHit + func (hit *InnerHit) Source() (interface{}, error) + func (hit *InnerHit) TrackScores(trackScores bool) *InnerHit + func (hit *InnerHit) Type(typ string) *InnerHit + func (hit *InnerHit) Version(version bool) *InnerHit + type LaplaceSmoothingModel struct + func NewLaplaceSmoothingModel(alpha float64) *LaplaceSmoothingModel + func (sm *LaplaceSmoothingModel) Source() (interface{}, error) + func (sm *LaplaceSmoothingModel) Type() string + type LinearDecayFunction struct + func NewLinearDecayFunction() *LinearDecayFunction + func (fn *LinearDecayFunction) Decay(decay float64) *LinearDecayFunction + func (fn *LinearDecayFunction) FieldName(fieldName string) *LinearDecayFunction + func (fn *LinearDecayFunction) GetMultiValueMode() string + func (fn *LinearDecayFunction) GetWeight() *float64 + func (fn *LinearDecayFunction) MultiValueMode(mode string) *LinearDecayFunction + func (fn *LinearDecayFunction) Name() string + func (fn *LinearDecayFunction) Offset(offset interface{}) *LinearDecayFunction + func (fn *LinearDecayFunction) Origin(origin interface{}) *LinearDecayFunction + func (fn *LinearDecayFunction) Scale(scale interface{}) *LinearDecayFunction + func (fn *LinearDecayFunction) Source() (interface{}, error) + func (fn *LinearDecayFunction) Weight(weight float64) *LinearDecayFunction + type LinearInterpolationSmoothingModel struct + func NewLinearInterpolationSmoothingModel(trigramLamda, bigramLambda, unigramLambda float64) *LinearInterpolationSmoothingModel + func (sm *LinearInterpolationSmoothingModel) Source() (interface{}, error) + func (sm *LinearInterpolationSmoothingModel) Type() string + type LinearMovAvgModel struct + func NewLinearMovAvgModel() *LinearMovAvgModel + func (m *LinearMovAvgModel) Name() string + func (m *LinearMovAvgModel) Settings() map[string]interface{} + type MatchAllQuery struct + func NewMatchAllQuery() *MatchAllQuery + func (q *MatchAllQuery) Boost(boost float64) *MatchAllQuery + func (q MatchAllQuery) Source() (interface{}, error) + type MatchQuery struct + func NewMatchPhrasePrefixQuery(name string, text interface{}) *MatchQuery + func NewMatchPhraseQuery(name string, text interface{}) *MatchQuery + func NewMatchQuery(name string, text interface{}) *MatchQuery + func (q *MatchQuery) Analyzer(analyzer string) *MatchQuery + func (q *MatchQuery) Boost(boost float64) *MatchQuery + func (q *MatchQuery) CutoffFrequency(cutoff float64) *MatchQuery + func (q *MatchQuery) Fuzziness(fuzziness string) *MatchQuery + func (q *MatchQuery) FuzzyRewrite(fuzzyRewrite string) *MatchQuery + func (q *MatchQuery) FuzzyTranspositions(fuzzyTranspositions bool) *MatchQuery + func (q *MatchQuery) Lenient(lenient bool) *MatchQuery + func (q *MatchQuery) MaxExpansions(maxExpansions int) *MatchQuery + func (q *MatchQuery) MinimumShouldMatch(minimumShouldMatch string) *MatchQuery + func (q *MatchQuery) Operator(operator string) *MatchQuery + func (q *MatchQuery) PrefixLength(prefixLength int) *MatchQuery + func (q *MatchQuery) QueryName(queryName string) *MatchQuery + func (q *MatchQuery) Rewrite(rewrite string) *MatchQuery + func (q *MatchQuery) Slop(slop int) *MatchQuery + func (q *MatchQuery) Source() (interface{}, error) + func (q *MatchQuery) Type(typ string) *MatchQuery + func (q *MatchQuery) ZeroTermsQuery(zeroTermsQuery string) *MatchQuery + type MaxAggregation struct + func NewMaxAggregation() *MaxAggregation + func (a *MaxAggregation) Field(field string) *MaxAggregation + func (a *MaxAggregation) Format(format string) *MaxAggregation + func (a *MaxAggregation) Meta(metaData map[string]interface{}) *MaxAggregation + func (a *MaxAggregation) Script(script *Script) *MaxAggregation + func (a *MaxAggregation) Source() (interface{}, error) + func (a *MaxAggregation) SubAggregation(name string, subAggregation Aggregation) *MaxAggregation + type MaxBucketAggregation struct + func NewMaxBucketAggregation() *MaxBucketAggregation + func (a *MaxBucketAggregation) BucketsPath(bucketsPaths ...string) *MaxBucketAggregation + func (a *MaxBucketAggregation) Format(format string) *MaxBucketAggregation + func (a *MaxBucketAggregation) GapInsertZeros() *MaxBucketAggregation + func (a *MaxBucketAggregation) GapPolicy(gapPolicy string) *MaxBucketAggregation + func (a *MaxBucketAggregation) GapSkip() *MaxBucketAggregation + func (a *MaxBucketAggregation) Meta(metaData map[string]interface{}) *MaxBucketAggregation + func (a *MaxBucketAggregation) Source() (interface{}, error) + func (a *MaxBucketAggregation) SubAggregation(name string, subAggregation Aggregation) *MaxBucketAggregation + type MgetResponse struct + Docs []*GetResult + type MgetService struct + func NewMgetService(client *Client) *MgetService + func (b *MgetService) Add(items ...*MultiGetItem) *MgetService + func (b *MgetService) Do() (*MgetResponse, error) + func (b *MgetService) Preference(preference string) *MgetService + func (b *MgetService) Realtime(realtime bool) *MgetService + func (b *MgetService) Refresh(refresh bool) *MgetService + func (b *MgetService) Source() (interface{}, error) + func (s *MgetService) Pretty(pretty bool) *MgetService + type MinAggregation struct + func NewMinAggregation() *MinAggregation + func (a *MinAggregation) Field(field string) *MinAggregation + func (a *MinAggregation) Format(format string) *MinAggregation + func (a *MinAggregation) Meta(metaData map[string]interface{}) *MinAggregation + func (a *MinAggregation) Script(script *Script) *MinAggregation + func (a *MinAggregation) Source() (interface{}, error) + func (a *MinAggregation) SubAggregation(name string, subAggregation Aggregation) *MinAggregation + type MinBucketAggregation struct + func NewMinBucketAggregation() *MinBucketAggregation + func (a *MinBucketAggregation) BucketsPath(bucketsPaths ...string) *MinBucketAggregation + func (a *MinBucketAggregation) Format(format string) *MinBucketAggregation + func (a *MinBucketAggregation) GapInsertZeros() *MinBucketAggregation + func (a *MinBucketAggregation) GapPolicy(gapPolicy string) *MinBucketAggregation + func (a *MinBucketAggregation) GapSkip() *MinBucketAggregation + func (a *MinBucketAggregation) Meta(metaData map[string]interface{}) *MinBucketAggregation + func (a *MinBucketAggregation) Source() (interface{}, error) + func (a *MinBucketAggregation) SubAggregation(name string, subAggregation Aggregation) *MinBucketAggregation + type MissingAggregation struct + func NewMissingAggregation() *MissingAggregation + func (a *MissingAggregation) Field(field string) *MissingAggregation + func (a *MissingAggregation) Meta(metaData map[string]interface{}) *MissingAggregation + func (a *MissingAggregation) Source() (interface{}, error) + func (a *MissingAggregation) SubAggregation(name string, subAggregation Aggregation) *MissingAggregation + type MissingQuery struct + func NewMissingQuery(name string) *MissingQuery + func (q *MissingQuery) Existence(existence bool) *MissingQuery + func (q *MissingQuery) NullValue(nullValue bool) *MissingQuery + func (q *MissingQuery) QueryName(queryName string) *MissingQuery + func (q *MissingQuery) Source() (interface{}, error) + type MoreLikeThisQuery struct + func NewMoreLikeThisQuery() *MoreLikeThisQuery + func (q *MoreLikeThisQuery) Analyzer(analyzer string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) Boost(boost float64) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) BoostTerms(boostTerms float64) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) FailOnUnsupportedField(fail bool) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) Field(fields ...string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) Ids(ids ...string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) IgnoreLikeItems(ignoreDocs ...*MoreLikeThisQueryItem) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) IgnoreLikeText(ignoreLikeText ...string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) Include(include bool) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) LikeItems(docs ...*MoreLikeThisQueryItem) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) LikeText(likeTexts ...string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MaxDocFreq(maxDocFreq int) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MaxQueryTerms(maxQueryTerms int) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MaxWordLen(maxWordLen int) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MinDocFreq(minDocFreq int) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MinTermFreq(minTermFreq int) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MinWordLen(minWordLen int) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) MinimumShouldMatch(minimumShouldMatch string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) QueryName(queryName string) *MoreLikeThisQuery + func (q *MoreLikeThisQuery) Source() (interface{}, error) + func (q *MoreLikeThisQuery) StopWord(stopWords ...string) *MoreLikeThisQuery + type MoreLikeThisQueryItem struct + func NewMoreLikeThisQueryItem() *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Doc(doc interface{}) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) FetchSourceContext(fsc *FetchSourceContext) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Fields(fields ...string) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Id(id string) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Index(index string) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) LikeText(likeText string) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Routing(routing string) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Source() (interface{}, error) + func (item *MoreLikeThisQueryItem) Type(typ string) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) Version(version int64) *MoreLikeThisQueryItem + func (item *MoreLikeThisQueryItem) VersionType(versionType string) *MoreLikeThisQueryItem + type MovAvgAggregation struct + func NewMovAvgAggregation() *MovAvgAggregation + func (a *MovAvgAggregation) BucketsPath(bucketsPaths ...string) *MovAvgAggregation + func (a *MovAvgAggregation) Format(format string) *MovAvgAggregation + func (a *MovAvgAggregation) GapInsertZeros() *MovAvgAggregation + func (a *MovAvgAggregation) GapPolicy(gapPolicy string) *MovAvgAggregation + func (a *MovAvgAggregation) GapSkip() *MovAvgAggregation + func (a *MovAvgAggregation) Meta(metaData map[string]interface{}) *MovAvgAggregation + func (a *MovAvgAggregation) Minimize(minimize bool) *MovAvgAggregation + func (a *MovAvgAggregation) Model(model MovAvgModel) *MovAvgAggregation + func (a *MovAvgAggregation) Predict(numPredictions int) *MovAvgAggregation + func (a *MovAvgAggregation) Source() (interface{}, error) + func (a *MovAvgAggregation) SubAggregation(name string, subAggregation Aggregation) *MovAvgAggregation + func (a *MovAvgAggregation) Window(window int) *MovAvgAggregation + type MovAvgModel interface + Name func() string + Settings func() map[string]interface{} + type MultiGetItem struct + func NewMultiGetItem() *MultiGetItem + func (item *MultiGetItem) FetchSource(fetchSourceContext *FetchSourceContext) *MultiGetItem + func (item *MultiGetItem) Fields(fields ...string) *MultiGetItem + func (item *MultiGetItem) Id(id string) *MultiGetItem + func (item *MultiGetItem) Index(index string) *MultiGetItem + func (item *MultiGetItem) Routing(routing string) *MultiGetItem + func (item *MultiGetItem) Source() (interface{}, error) + func (item *MultiGetItem) Type(typ string) *MultiGetItem + func (item *MultiGetItem) Version(version int64) *MultiGetItem + func (item *MultiGetItem) VersionType(versionType string) *MultiGetItem + type MultiMatchQuery struct + func NewMultiMatchQuery(text interface{}, fields ...string) *MultiMatchQuery + func (q *MultiMatchQuery) Analyzer(analyzer string) *MultiMatchQuery + func (q *MultiMatchQuery) Boost(boost float64) *MultiMatchQuery + func (q *MultiMatchQuery) CutoffFrequency(cutoff float64) *MultiMatchQuery + func (q *MultiMatchQuery) Field(field string) *MultiMatchQuery + func (q *MultiMatchQuery) FieldWithBoost(field string, boost float64) *MultiMatchQuery + func (q *MultiMatchQuery) Fuzziness(fuzziness string) *MultiMatchQuery + func (q *MultiMatchQuery) FuzzyRewrite(fuzzyRewrite string) *MultiMatchQuery + func (q *MultiMatchQuery) Lenient(lenient bool) *MultiMatchQuery + func (q *MultiMatchQuery) MaxExpansions(maxExpansions int) *MultiMatchQuery + func (q *MultiMatchQuery) MinimumShouldMatch(minimumShouldMatch string) *MultiMatchQuery + func (q *MultiMatchQuery) Operator(operator string) *MultiMatchQuery + func (q *MultiMatchQuery) PrefixLength(prefixLength int) *MultiMatchQuery + func (q *MultiMatchQuery) QueryName(queryName string) *MultiMatchQuery + func (q *MultiMatchQuery) Rewrite(rewrite string) *MultiMatchQuery + func (q *MultiMatchQuery) Slop(slop int) *MultiMatchQuery + func (q *MultiMatchQuery) Source() (interface{}, error) + func (q *MultiMatchQuery) TieBreaker(tieBreaker float64) *MultiMatchQuery + func (q *MultiMatchQuery) Type(typ string) *MultiMatchQuery + func (q *MultiMatchQuery) ZeroTermsQuery(zeroTermsQuery string) *MultiMatchQuery + type MultiSearchResult struct + Responses []*SearchResult + type MultiSearchService struct + func NewMultiSearchService(client *Client) *MultiSearchService + func (s *MultiSearchService) Add(requests ...*SearchRequest) *MultiSearchService + func (s *MultiSearchService) Do() (*MultiSearchResult, error) + func (s *MultiSearchService) Index(indices ...string) *MultiSearchService + func (s *MultiSearchService) Pretty(pretty bool) *MultiSearchService + type NestedAggregation struct + func NewNestedAggregation() *NestedAggregation + func (a *NestedAggregation) Meta(metaData map[string]interface{}) *NestedAggregation + func (a *NestedAggregation) Path(path string) *NestedAggregation + func (a *NestedAggregation) Source() (interface{}, error) + func (a *NestedAggregation) SubAggregation(name string, subAggregation Aggregation) *NestedAggregation + type NestedQuery struct + func NewNestedQuery(path string, query Query) *NestedQuery + func (q *NestedQuery) Boost(boost float64) *NestedQuery + func (q *NestedQuery) InnerHit(innerHit *InnerHit) *NestedQuery + func (q *NestedQuery) QueryName(queryName string) *NestedQuery + func (q *NestedQuery) ScoreMode(scoreMode string) *NestedQuery + func (q *NestedQuery) Source() (interface{}, error) + type NodesInfoNode struct + Attributes map[string]interface{} + Build string + HTTP *NodesInfoNodeHTTP + HTTPAddress string + HTTPSAddress string + Host string + IP string + JVM *NodesInfoNodeProcess + Name string + Network *NodesInfoNodeNetwork + OS *NodesInfoNodeOS + Plugins []*NodesInfoNodePlugin + Process *NodesInfoNodeProcess + Settings map[string]interface{} + ThreadPool *NodesInfoNodeThreadPool + Transport *NodesInfoNodeTransport + TransportAddress string + Version string + type NodesInfoNodeHTTP struct + BoundAddress []string + MaxContentLength string + MaxContentLengthInBytes int64 + PublishAddress string + type NodesInfoNodeJVM struct + GCCollectors []string + Mem struct{ ... } + MemoryPools []string + PID int + StartTime time.Time + StartTimeInMillis int64 + VMName string + VMVendor string + VMVersion string + Version string + type NodesInfoNodeNetwork struct + PrimaryInterface struct{ ... } + RefreshInterval string + RefreshIntervalInMillis int + type NodesInfoNodeOS struct + AvailableProcessors int + CPU struct{ ... } + Mem struct{ ... } + RefreshInterval string + RefreshIntervalInMillis int + Swap struct{ ... } + type NodesInfoNodePlugin struct + Description string + JVM bool + Name string + Site bool + URL string + type NodesInfoNodeProcess struct + ID int + MaxFileDescriptors int + Mlockall bool + RefreshInterval string + RefreshIntervalInMillis int + type NodesInfoNodeThreadPool struct + Bench *NodesInfoNodeThreadPoolSection + Bulk *NodesInfoNodeThreadPoolSection + Flush *NodesInfoNodeThreadPoolSection + Generic *NodesInfoNodeThreadPoolSection + Get *NodesInfoNodeThreadPoolSection + Index *NodesInfoNodeThreadPoolSection + Listener *NodesInfoNodeThreadPoolSection + Management *NodesInfoNodeThreadPoolSection + Merge *NodesInfoNodeThreadPoolSection + Optimize *NodesInfoNodeThreadPoolSection + Percolate *NodesInfoNodeThreadPoolSection + Refresh *NodesInfoNodeThreadPoolSection + Search *NodesInfoNodeThreadPoolSection + Snapshot *NodesInfoNodeThreadPoolSection + Suggest *NodesInfoNodeThreadPoolSection + Warmer *NodesInfoNodeThreadPoolSection + type NodesInfoNodeThreadPoolSection struct + KeepAlive string + Max int + Min int + QueueSize interface{} + Type string + type NodesInfoNodeTransport struct + BoundAddress []string + Profiles map[string]*NodesInfoNodeTransportProfile + PublishAddress string + type NodesInfoNodeTransportProfile struct + BoundAddress []string + PublishAddress string + type NodesInfoResponse struct + ClusterName string + Nodes map[string]*NodesInfoNode + type NodesInfoService struct + func NewNodesInfoService(client *Client) *NodesInfoService + func (s *NodesInfoService) Do() (*NodesInfoResponse, error) + func (s *NodesInfoService) FlatSettings(flatSettings bool) *NodesInfoService + func (s *NodesInfoService) Human(human bool) *NodesInfoService + func (s *NodesInfoService) Metric(metric ...string) *NodesInfoService + func (s *NodesInfoService) NodeId(nodeId ...string) *NodesInfoService + func (s *NodesInfoService) Pretty(pretty bool) *NodesInfoService + func (s *NodesInfoService) Validate() error + type NotQuery struct + func NewNotQuery(filter Query) *NotQuery + func (q *NotQuery) QueryName(queryName string) *NotQuery + func (q *NotQuery) Source() (interface{}, error) + type OptimizeResult struct + Shards shardsInfo + type OptimizeService struct + func NewOptimizeService(client *Client) *OptimizeService + func (s *OptimizeService) Do() (*OptimizeResult, error) + func (s *OptimizeService) Flush(flush bool) *OptimizeService + func (s *OptimizeService) Force(force bool) *OptimizeService + func (s *OptimizeService) Index(indices ...string) *OptimizeService + func (s *OptimizeService) MaxNumSegments(maxNumSegments int) *OptimizeService + func (s *OptimizeService) OnlyExpungeDeletes(onlyExpungeDeletes bool) *OptimizeService + func (s *OptimizeService) Pretty(pretty bool) *OptimizeService + func (s *OptimizeService) WaitForMerge(waitForMerge bool) *OptimizeService + type PercentileRanksAggregation struct + func NewPercentileRanksAggregation() *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Compression(compression float64) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Estimator(estimator string) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Field(field string) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Format(format string) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Meta(metaData map[string]interface{}) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Script(script *Script) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Source() (interface{}, error) + func (a *PercentileRanksAggregation) SubAggregation(name string, subAggregation Aggregation) *PercentileRanksAggregation + func (a *PercentileRanksAggregation) Values(values ...float64) *PercentileRanksAggregation + type PercentilesAggregation struct + func NewPercentilesAggregation() *PercentilesAggregation + func (a *PercentilesAggregation) Compression(compression float64) *PercentilesAggregation + func (a *PercentilesAggregation) Estimator(estimator string) *PercentilesAggregation + func (a *PercentilesAggregation) Field(field string) *PercentilesAggregation + func (a *PercentilesAggregation) Format(format string) *PercentilesAggregation + func (a *PercentilesAggregation) Meta(metaData map[string]interface{}) *PercentilesAggregation + func (a *PercentilesAggregation) Percentiles(percentiles ...float64) *PercentilesAggregation + func (a *PercentilesAggregation) Script(script *Script) *PercentilesAggregation + func (a *PercentilesAggregation) Source() (interface{}, error) + func (a *PercentilesAggregation) SubAggregation(name string, subAggregation Aggregation) *PercentilesAggregation + type PercolateMatch struct + Id string + Index string + Score float64 + type PercolateResponse struct + Aggregations Aggregations + Matches []*PercolateMatch + TookInMillis int64 + Total int64 + type PercolateService struct + func NewPercolateService(client *Client) *PercolateService + func (s *PercolateService) AllowNoIndices(allowNoIndices bool) *PercolateService + func (s *PercolateService) BodyJson(body interface{}) *PercolateService + func (s *PercolateService) BodyString(body string) *PercolateService + func (s *PercolateService) Do() (*PercolateResponse, error) + func (s *PercolateService) Doc(doc interface{}) *PercolateService + func (s *PercolateService) ExpandWildcards(expandWildcards string) *PercolateService + func (s *PercolateService) Id(id string) *PercolateService + func (s *PercolateService) IgnoreUnavailable(ignoreUnavailable bool) *PercolateService + func (s *PercolateService) Index(index string) *PercolateService + func (s *PercolateService) PercolateFormat(percolateFormat string) *PercolateService + func (s *PercolateService) PercolateIndex(percolateIndex string) *PercolateService + func (s *PercolateService) PercolatePreference(percolatePreference string) *PercolateService + func (s *PercolateService) PercolateRouting(percolateRouting string) *PercolateService + func (s *PercolateService) PercolateType(percolateType string) *PercolateService + func (s *PercolateService) Preference(preference string) *PercolateService + func (s *PercolateService) Pretty(pretty bool) *PercolateService + func (s *PercolateService) Routing(routing []string) *PercolateService + func (s *PercolateService) Source(source string) *PercolateService + func (s *PercolateService) Type(typ string) *PercolateService + func (s *PercolateService) Validate() error + func (s *PercolateService) Version(version interface{}) *PercolateService + func (s *PercolateService) VersionType(versionType string) *PercolateService + type PhraseSuggester struct + func NewPhraseSuggester(name string) *PhraseSuggester + func (q *PhraseSuggester) Analyzer(analyzer string) *PhraseSuggester + func (q *PhraseSuggester) CandidateGenerator(generator CandidateGenerator) *PhraseSuggester + func (q *PhraseSuggester) CandidateGenerators(generators ...CandidateGenerator) *PhraseSuggester + func (q *PhraseSuggester) ClearCandidateGenerator() *PhraseSuggester + func (q *PhraseSuggester) CollateFilter(collateFilter string) *PhraseSuggester + func (q *PhraseSuggester) CollateParams(collateParams map[string]interface{}) *PhraseSuggester + func (q *PhraseSuggester) CollatePreference(collatePreference string) *PhraseSuggester + func (q *PhraseSuggester) CollatePrune(collatePrune bool) *PhraseSuggester + func (q *PhraseSuggester) CollateQuery(collateQuery string) *PhraseSuggester + func (q *PhraseSuggester) Confidence(confidence float64) *PhraseSuggester + func (q *PhraseSuggester) ContextQueries(queries ...SuggesterContextQuery) *PhraseSuggester + func (q *PhraseSuggester) ContextQuery(query SuggesterContextQuery) *PhraseSuggester + func (q *PhraseSuggester) Field(field string) *PhraseSuggester + func (q *PhraseSuggester) ForceUnigrams(forceUnigrams bool) *PhraseSuggester + func (q *PhraseSuggester) GramSize(gramSize int) *PhraseSuggester + func (q *PhraseSuggester) Highlight(preTag, postTag string) *PhraseSuggester + func (q *PhraseSuggester) MaxErrors(maxErrors float64) *PhraseSuggester + func (q *PhraseSuggester) Name() string + func (q *PhraseSuggester) RealWordErrorLikelihood(realWordErrorLikelihood float64) *PhraseSuggester + func (q *PhraseSuggester) Separator(separator string) *PhraseSuggester + func (q *PhraseSuggester) ShardSize(shardSize int) *PhraseSuggester + func (q *PhraseSuggester) Size(size int) *PhraseSuggester + func (q *PhraseSuggester) SmoothingModel(smoothingModel SmoothingModel) *PhraseSuggester + func (q *PhraseSuggester) Source(includeName bool) (interface{}, error) + func (q *PhraseSuggester) Text(text string) *PhraseSuggester + func (q *PhraseSuggester) TokenLimit(tokenLimit int) *PhraseSuggester + type PingResult struct + ClusterName string + Name string + TagLine string + Version struct{ ... } + type PingService struct + func NewPingService(client *Client) *PingService + func (s *PingService) Do() (*PingResult, int, error) + func (s *PingService) HttpHeadOnly(httpHeadOnly bool) *PingService + func (s *PingService) Pretty(pretty bool) *PingService + func (s *PingService) Timeout(timeout string) *PingService + func (s *PingService) URL(url string) *PingService + type PrefixQuery struct + func NewPrefixQuery(name string, prefix string) *PrefixQuery + func (q *PrefixQuery) Boost(boost float64) *PrefixQuery + func (q *PrefixQuery) QueryName(queryName string) *PrefixQuery + func (q *PrefixQuery) Rewrite(rewrite string) *PrefixQuery + func (q *PrefixQuery) Source() (interface{}, error) + type PutMappingResponse struct + Acknowledged bool + type PutMappingService struct + func NewPutMappingService(client *Client) *PutMappingService + func (s *PutMappingService) AllowNoIndices(allowNoIndices bool) *PutMappingService + func (s *PutMappingService) BodyJson(mapping map[string]interface{}) *PutMappingService + func (s *PutMappingService) BodyString(mapping string) *PutMappingService + func (s *PutMappingService) Do() (*PutMappingResponse, error) + func (s *PutMappingService) ExpandWildcards(expandWildcards string) *PutMappingService + func (s *PutMappingService) IgnoreConflicts(ignoreConflicts bool) *PutMappingService + func (s *PutMappingService) IgnoreUnavailable(ignoreUnavailable bool) *PutMappingService + func (s *PutMappingService) Index(indices ...string) *PutMappingService + func (s *PutMappingService) MasterTimeout(masterTimeout string) *PutMappingService + func (s *PutMappingService) Pretty(pretty bool) *PutMappingService + func (s *PutMappingService) Timeout(timeout string) *PutMappingService + func (s *PutMappingService) Type(typ string) *PutMappingService + func (s *PutMappingService) Validate() error + type PutTemplateResponse struct + Created bool + Id string + Version int + type PutTemplateService struct + func NewPutTemplateService(client *Client) *PutTemplateService + func (s *PutTemplateService) BodyJson(body interface{}) *PutTemplateService + func (s *PutTemplateService) BodyString(body string) *PutTemplateService + func (s *PutTemplateService) Do() (*PutTemplateResponse, error) + func (s *PutTemplateService) Id(id string) *PutTemplateService + func (s *PutTemplateService) OpType(opType string) *PutTemplateService + func (s *PutTemplateService) Validate() error + func (s *PutTemplateService) Version(version int) *PutTemplateService + func (s *PutTemplateService) VersionType(versionType string) *PutTemplateService + type Query interface + Source func() (interface{}, error) + type QueryRescorer struct + func NewQueryRescorer(query Query) *QueryRescorer + func (r *QueryRescorer) Name() string + func (r *QueryRescorer) QueryWeight(queryWeight float64) *QueryRescorer + func (r *QueryRescorer) RescoreQueryWeight(rescoreQueryWeight float64) *QueryRescorer + func (r *QueryRescorer) ScoreMode(scoreMode string) *QueryRescorer + func (r *QueryRescorer) Source() (interface{}, error) + type QueryStringQuery struct + func NewQueryStringQuery(queryString string) *QueryStringQuery + func (q *QueryStringQuery) AllowLeadingWildcard(allowLeadingWildcard bool) *QueryStringQuery + func (q *QueryStringQuery) AnalyzeWildcard(analyzeWildcard bool) *QueryStringQuery + func (q *QueryStringQuery) Analyzer(analyzer string) *QueryStringQuery + func (q *QueryStringQuery) AutoGeneratePhraseQueries(autoGeneratePhraseQueries bool) *QueryStringQuery + func (q *QueryStringQuery) Boost(boost float64) *QueryStringQuery + func (q *QueryStringQuery) DefaultField(defaultField string) *QueryStringQuery + func (q *QueryStringQuery) DefaultOperator(operator string) *QueryStringQuery + func (q *QueryStringQuery) EnablePositionIncrements(enablePositionIncrements bool) *QueryStringQuery + func (q *QueryStringQuery) Field(field string) *QueryStringQuery + func (q *QueryStringQuery) FieldWithBoost(field string, boost float64) *QueryStringQuery + func (q *QueryStringQuery) Fuzziness(fuzziness string) *QueryStringQuery + func (q *QueryStringQuery) FuzzyMaxExpansions(fuzzyMaxExpansions int) *QueryStringQuery + func (q *QueryStringQuery) FuzzyPrefixLength(fuzzyPrefixLength int) *QueryStringQuery + func (q *QueryStringQuery) FuzzyRewrite(fuzzyRewrite string) *QueryStringQuery + func (q *QueryStringQuery) Lenient(lenient bool) *QueryStringQuery + func (q *QueryStringQuery) Locale(locale string) *QueryStringQuery + func (q *QueryStringQuery) LowercaseExpandedTerms(lowercaseExpandedTerms bool) *QueryStringQuery + func (q *QueryStringQuery) MaxDeterminizedState(maxDeterminizedStates int) *QueryStringQuery + func (q *QueryStringQuery) MinimumShouldMatch(minimumShouldMatch string) *QueryStringQuery + func (q *QueryStringQuery) PhraseSlop(phraseSlop int) *QueryStringQuery + func (q *QueryStringQuery) QueryName(queryName string) *QueryStringQuery + func (q *QueryStringQuery) QuoteAnalyzer(quoteAnalyzer string) *QueryStringQuery + func (q *QueryStringQuery) QuoteFieldSuffix(quoteFieldSuffix string) *QueryStringQuery + func (q *QueryStringQuery) Rewrite(rewrite string) *QueryStringQuery + func (q *QueryStringQuery) Source() (interface{}, error) + func (q *QueryStringQuery) TieBreaker(tieBreaker float64) *QueryStringQuery + func (q *QueryStringQuery) TimeZone(timeZone string) *QueryStringQuery + func (q *QueryStringQuery) UseDisMax(useDisMax bool) *QueryStringQuery + type RandomFunction struct + func NewRandomFunction() *RandomFunction + func (fn *RandomFunction) GetWeight() *float64 + func (fn *RandomFunction) Name() string + func (fn *RandomFunction) Seed(seed interface{}) *RandomFunction + func (fn *RandomFunction) Source() (interface{}, error) + func (fn *RandomFunction) Weight(weight float64) *RandomFunction + type RangeAggregation struct + func NewRangeAggregation() *RangeAggregation + func (a *RangeAggregation) AddRange(from, to interface{}) *RangeAggregation + func (a *RangeAggregation) AddRangeWithKey(key string, from, to interface{}) *RangeAggregation + func (a *RangeAggregation) AddUnboundedFrom(to interface{}) *RangeAggregation + func (a *RangeAggregation) AddUnboundedFromWithKey(key string, to interface{}) *RangeAggregation + func (a *RangeAggregation) AddUnboundedTo(from interface{}) *RangeAggregation + func (a *RangeAggregation) AddUnboundedToWithKey(key string, from interface{}) *RangeAggregation + func (a *RangeAggregation) Between(from, to interface{}) *RangeAggregation + func (a *RangeAggregation) BetweenWithKey(key string, from, to interface{}) *RangeAggregation + func (a *RangeAggregation) Field(field string) *RangeAggregation + func (a *RangeAggregation) Gt(from interface{}) *RangeAggregation + func (a *RangeAggregation) GtWithKey(key string, from interface{}) *RangeAggregation + func (a *RangeAggregation) Keyed(keyed bool) *RangeAggregation + func (a *RangeAggregation) Lt(to interface{}) *RangeAggregation + func (a *RangeAggregation) LtWithKey(key string, to interface{}) *RangeAggregation + func (a *RangeAggregation) Meta(metaData map[string]interface{}) *RangeAggregation + func (a *RangeAggregation) Script(script *Script) *RangeAggregation + func (a *RangeAggregation) Source() (interface{}, error) + func (a *RangeAggregation) SubAggregation(name string, subAggregation Aggregation) *RangeAggregation + func (a *RangeAggregation) Unmapped(unmapped bool) *RangeAggregation + type RangeQuery struct + func NewRangeQuery(name string) *RangeQuery + func (q *RangeQuery) Boost(boost float64) *RangeQuery + func (q *RangeQuery) Format(format string) *RangeQuery + func (q *RangeQuery) From(from interface{}) *RangeQuery + func (q *RangeQuery) Gt(from interface{}) *RangeQuery + func (q *RangeQuery) Gte(from interface{}) *RangeQuery + func (q *RangeQuery) IncludeLower(includeLower bool) *RangeQuery + func (q *RangeQuery) IncludeUpper(includeUpper bool) *RangeQuery + func (q *RangeQuery) Lt(to interface{}) *RangeQuery + func (q *RangeQuery) Lte(to interface{}) *RangeQuery + func (q *RangeQuery) QueryName(queryName string) *RangeQuery + func (q *RangeQuery) Source() (interface{}, error) + func (q *RangeQuery) TimeZone(timeZone string) *RangeQuery + func (q *RangeQuery) To(to interface{}) *RangeQuery + type RefreshResult struct + Shards shardsInfo + type RefreshService struct + func NewRefreshService(client *Client) *RefreshService + func (s *RefreshService) Do() (*RefreshResult, error) + func (s *RefreshService) Force(force bool) *RefreshService + func (s *RefreshService) Index(indices ...string) *RefreshService + func (s *RefreshService) Pretty(pretty bool) *RefreshService + type RegexpQuery struct + func NewRegexpQuery(name string, regexp string) *RegexpQuery + func (q *RegexpQuery) Boost(boost float64) *RegexpQuery + func (q *RegexpQuery) Flags(flags string) *RegexpQuery + func (q *RegexpQuery) MaxDeterminizedStates(maxDeterminizedStates int) *RegexpQuery + func (q *RegexpQuery) QueryName(queryName string) *RegexpQuery + func (q *RegexpQuery) Rewrite(rewrite string) *RegexpQuery + func (q *RegexpQuery) Source() (interface{}, error) + type Reindexer struct + func NewReindexer(client *Client, source string, reindexerFunc ReindexerFunc) *Reindexer + func (ix *Reindexer) BulkSize(bulkSize int) *Reindexer + func (ix *Reindexer) Do() (*ReindexerResponse, error) + func (ix *Reindexer) Progress(f ReindexerProgressFunc) *Reindexer + func (ix *Reindexer) Query(q Query) *Reindexer + func (ix *Reindexer) ScanFields(scanFields ...string) *Reindexer + func (ix *Reindexer) Scroll(timeout string) *Reindexer + func (ix *Reindexer) Size(size int) *Reindexer + func (ix *Reindexer) StatsOnly(statsOnly bool) *Reindexer + func (ix *Reindexer) TargetClient(c *Client) *Reindexer + type ReindexerFunc func(hit *SearchHit, bulkService *BulkService) error + func CopyToTargetIndex(targetIndex string) ReindexerFunc + type ReindexerProgressFunc func(current, total int64) + type ReindexerResponse struct + Errors []*BulkResponseItem + Failed int64 + Success int64 + type Request http.Request + func NewRequest(method, url string) (*Request, error) + func (r *Request) SetBasicAuth(username, password string) + func (r *Request) SetBody(body interface{}, gzipCompress bool) error + type Rescore struct + func NewRescore() *Rescore + func (r *Rescore) IsEmpty() bool + func (r *Rescore) Rescorer(rescorer Rescorer) *Rescore + func (r *Rescore) Source() (interface{}, error) + func (r *Rescore) WindowSize(windowSize int) *Rescore + type Rescorer interface + Name func() string + Source func() (interface{}, error) + type Response struct + Body json.RawMessage + Header http.Header + StatusCode int + type RestoreSource struct + Index string + Repository string + Snapshot string + Version string + type ScanCursor struct + Results *SearchResult + func NewScanCursor(client *Client, keepAlive string, pretty bool, searchResult *SearchResult) *ScanCursor + func (c *ScanCursor) Next() (*SearchResult, error) + func (c *ScanCursor) TotalHits() int64 + type ScanService struct + func NewScanService(client *Client) *ScanService + func (s *ScanService) Do() (*ScanCursor, error) + func (s *ScanService) FetchSource(fetchSource bool) *ScanService + func (s *ScanService) FetchSourceContext(fetchSourceContext *FetchSourceContext) *ScanService + func (s *ScanService) Fields(fields ...string) *ScanService + func (s *ScanService) Index(indices ...string) *ScanService + func (s *ScanService) KeepAlive(keepAlive string) *ScanService + func (s *ScanService) PostFilter(postFilter Query) *ScanService + func (s *ScanService) Preference(preference string) *ScanService + func (s *ScanService) Pretty(pretty bool) *ScanService + func (s *ScanService) Query(query Query) *ScanService + func (s *ScanService) Routing(routings ...string) *ScanService + func (s *ScanService) Scroll(keepAlive string) *ScanService + func (s *ScanService) SearchSource(searchSource *SearchSource) *ScanService + func (s *ScanService) Size(size int) *ScanService + func (s *ScanService) Sort(field string, ascending bool) *ScanService + func (s *ScanService) SortBy(sorter ...Sorter) *ScanService + func (s *ScanService) SortWithInfo(info SortInfo) *ScanService + func (s *ScanService) Type(types ...string) *ScanService + func (s *ScanService) Version(version bool) *ScanService + type ScoreFunction interface + GetWeight func() *float64 + Name func() string + Source func() (interface{}, error) + type ScoreSort struct + func NewScoreSort() ScoreSort + func (s ScoreSort) Asc() ScoreSort + func (s ScoreSort) Desc() ScoreSort + func (s ScoreSort) Order(ascending bool) ScoreSort + func (s ScoreSort) Source() (interface{}, error) + type Script struct + func NewScript(script string) *Script + func NewScriptFile(script string) *Script + func NewScriptId(script string) *Script + func NewScriptInline(script string) *Script + func (s *Script) Lang(lang string) *Script + func (s *Script) Param(name string, value interface{}) *Script + func (s *Script) Params(params map[string]interface{}) *Script + func (s *Script) Script(script string) *Script + func (s *Script) Source() (interface{}, error) + func (s *Script) Type(typ string) *Script + type ScriptField struct + FieldName string + func NewScriptField(fieldName string, script *Script) *ScriptField + func (f *ScriptField) Source() (interface{}, error) + type ScriptFunction struct + func NewScriptFunction(script *Script) *ScriptFunction + func (fn *ScriptFunction) GetWeight() *float64 + func (fn *ScriptFunction) Name() string + func (fn *ScriptFunction) Script(script *Script) *ScriptFunction + func (fn *ScriptFunction) Source() (interface{}, error) + func (fn *ScriptFunction) Weight(weight float64) *ScriptFunction + type ScriptQuery struct + func NewScriptQuery(script *Script) *ScriptQuery + func (q *ScriptQuery) QueryName(queryName string) *ScriptQuery + func (q *ScriptQuery) Source() (interface{}, error) + type ScriptSort struct + func NewScriptSort(script *Script, typ string) ScriptSort + func (s ScriptSort) Asc() ScriptSort + func (s ScriptSort) Desc() ScriptSort + func (s ScriptSort) NestedFilter(nestedFilter Query) ScriptSort + func (s ScriptSort) NestedPath(nestedPath string) ScriptSort + func (s ScriptSort) Order(ascending bool) ScriptSort + func (s ScriptSort) SortMode(sortMode string) ScriptSort + func (s ScriptSort) Source() (interface{}, error) + func (s ScriptSort) Type(typ string) ScriptSort + type ScrollService struct + func NewScrollService(client *Client) *ScrollService + func (s *ScrollService) Do() (*SearchResult, error) + func (s *ScrollService) GetFirstPage() (*SearchResult, error) + func (s *ScrollService) GetNextPage() (*SearchResult, error) + func (s *ScrollService) Index(indices ...string) *ScrollService + func (s *ScrollService) KeepAlive(keepAlive string) *ScrollService + func (s *ScrollService) Pretty(pretty bool) *ScrollService + func (s *ScrollService) Query(query Query) *ScrollService + func (s *ScrollService) Scroll(keepAlive string) *ScrollService + func (s *ScrollService) ScrollId(scrollId string) *ScrollService + func (s *ScrollService) Size(size int) *ScrollService + func (s *ScrollService) Type(types ...string) *ScrollService + type SearchExplanation struct + Description string + Details []SearchExplanation + Value float64 + type SearchHit struct + Explanation *SearchExplanation + Fields map[string]interface{} + Highlight SearchHitHighlight + Id string + Index string + InnerHits map[string]*SearchHitInnerHits + MatchedQueries []string + Parent string + Routing string + Score *float64 + Sort []interface{} + Source *json.RawMessage + TTL int64 + Timestamp int64 + Type string + Uid string + Version *int64 + type SearchHitHighlight map[string][]string + type SearchHitInnerHits struct + Hits *SearchHits + type SearchHits struct + Hits []*SearchHit + MaxScore *float64 + TotalHits int64 + type SearchRequest struct + func NewSearchRequest() *SearchRequest + func (r *SearchRequest) HasIndices() bool + func (r *SearchRequest) Index(indices ...string) *SearchRequest + func (r *SearchRequest) Preference(preference string) *SearchRequest + func (r *SearchRequest) Routing(routing string) *SearchRequest + func (r *SearchRequest) Routings(routings ...string) *SearchRequest + func (r *SearchRequest) SearchType(searchType string) *SearchRequest + func (r *SearchRequest) SearchTypeCount() *SearchRequest + func (r *SearchRequest) SearchTypeDfsQueryAndFetch() *SearchRequest + func (r *SearchRequest) SearchTypeDfsQueryThenFetch() *SearchRequest + func (r *SearchRequest) SearchTypeQueryAndFetch() *SearchRequest + func (r *SearchRequest) SearchTypeQueryThenFetch() *SearchRequest + func (r *SearchRequest) SearchTypeScan() *SearchRequest + func (r *SearchRequest) Source(source interface{}) *SearchRequest + func (r *SearchRequest) Type(types ...string) *SearchRequest + type SearchResult struct + Aggregations Aggregations + Error *ErrorDetails + Hits *SearchHits + ScrollId string + Suggest SearchSuggest + TimedOut bool + TookInMillis int64 + func (r *SearchResult) Each(typ reflect.Type) []interface{} + func (r *SearchResult) TotalHits() int64 + type SearchService struct + func NewSearchService(client *Client) *SearchService + func (s *SearchService) Aggregation(name string, aggregation Aggregation) *SearchService + func (s *SearchService) Do() (*SearchResult, error) + func (s *SearchService) Explain(explain bool) *SearchService + func (s *SearchService) FetchSource(fetchSource bool) *SearchService + func (s *SearchService) FetchSourceContext(fetchSourceContext *FetchSourceContext) *SearchService + func (s *SearchService) Field(fieldName string) *SearchService + func (s *SearchService) Fields(fields ...string) *SearchService + func (s *SearchService) From(from int) *SearchService + func (s *SearchService) GlobalSuggestText(globalText string) *SearchService + func (s *SearchService) Highlight(highlight *Highlight) *SearchService + func (s *SearchService) Index(indices ...string) *SearchService + func (s *SearchService) MinScore(minScore float64) *SearchService + func (s *SearchService) NoFields() *SearchService + func (s *SearchService) PostFilter(postFilter Query) *SearchService + func (s *SearchService) Preference(preference string) *SearchService + func (s *SearchService) Pretty(pretty bool) *SearchService + func (s *SearchService) Query(query Query) *SearchService + func (s *SearchService) Routing(routings ...string) *SearchService + func (s *SearchService) SearchSource(searchSource *SearchSource) *SearchService + func (s *SearchService) SearchType(searchType string) *SearchService + func (s *SearchService) Size(size int) *SearchService + func (s *SearchService) Sort(field string, ascending bool) *SearchService + func (s *SearchService) SortBy(sorter ...Sorter) *SearchService + func (s *SearchService) SortWithInfo(info SortInfo) *SearchService + func (s *SearchService) Source(source interface{}) *SearchService + func (s *SearchService) Suggester(suggester Suggester) *SearchService + func (s *SearchService) Timeout(timeout string) *SearchService + func (s *SearchService) TimeoutInMillis(timeoutInMillis int) *SearchService + func (s *SearchService) Type(types ...string) *SearchService + func (s *SearchService) Version(version bool) *SearchService + type SearchSource struct + func NewSearchSource() *SearchSource + func (s *SearchSource) Aggregation(name string, aggregation Aggregation) *SearchSource + func (s *SearchSource) ClearRescorers() *SearchSource + func (s *SearchSource) DefaultRescoreWindowSize(defaultRescoreWindowSize int) *SearchSource + func (s *SearchSource) Explain(explain bool) *SearchSource + func (s *SearchSource) FetchSource(fetchSource bool) *SearchSource + func (s *SearchSource) FetchSourceContext(fetchSourceContext *FetchSourceContext) *SearchSource + func (s *SearchSource) Field(fieldName string) *SearchSource + func (s *SearchSource) FieldDataField(fieldDataField string) *SearchSource + func (s *SearchSource) FieldDataFields(fieldDataFields ...string) *SearchSource + func (s *SearchSource) Fields(fieldNames ...string) *SearchSource + func (s *SearchSource) From(from int) *SearchSource + func (s *SearchSource) GlobalSuggestText(text string) *SearchSource + func (s *SearchSource) Highlight(highlight *Highlight) *SearchSource + func (s *SearchSource) Highlighter() *Highlight + func (s *SearchSource) IndexBoost(index string, boost float64) *SearchSource + func (s *SearchSource) InnerHit(name string, innerHit *InnerHit) *SearchSource + func (s *SearchSource) MinScore(minScore float64) *SearchSource + func (s *SearchSource) NoFields() *SearchSource + func (s *SearchSource) PostFilter(postFilter Query) *SearchSource + func (s *SearchSource) Query(query Query) *SearchSource + func (s *SearchSource) Rescorer(rescore *Rescore) *SearchSource + func (s *SearchSource) ScriptField(scriptField *ScriptField) *SearchSource + func (s *SearchSource) ScriptFields(scriptFields ...*ScriptField) *SearchSource + func (s *SearchSource) Size(size int) *SearchSource + func (s *SearchSource) Sort(field string, ascending bool) *SearchSource + func (s *SearchSource) SortBy(sorter ...Sorter) *SearchSource + func (s *SearchSource) SortWithInfo(info SortInfo) *SearchSource + func (s *SearchSource) Source() (interface{}, error) + func (s *SearchSource) Stats(statsGroup ...string) *SearchSource + func (s *SearchSource) Suggester(suggester Suggester) *SearchSource + func (s *SearchSource) TerminateAfter(terminateAfter int) *SearchSource + func (s *SearchSource) Timeout(timeout string) *SearchSource + func (s *SearchSource) TimeoutInMillis(timeoutInMillis int) *SearchSource + func (s *SearchSource) TrackScores(trackScores bool) *SearchSource + func (s *SearchSource) Version(version bool) *SearchSource + type SearchSuggest map[string][]SearchSuggestion + type SearchSuggestion struct + Length int + Offset int + Options []SearchSuggestionOption + Text string + type SearchSuggestionOption struct + Freq int + Payload interface{} + Score float64 + Text string + type SerialDiffAggregation struct + func NewSerialDiffAggregation() *SerialDiffAggregation + func (a *SerialDiffAggregation) BucketsPath(bucketsPaths ...string) *SerialDiffAggregation + func (a *SerialDiffAggregation) Format(format string) *SerialDiffAggregation + func (a *SerialDiffAggregation) GapInsertZeros() *SerialDiffAggregation + func (a *SerialDiffAggregation) GapPolicy(gapPolicy string) *SerialDiffAggregation + func (a *SerialDiffAggregation) GapSkip() *SerialDiffAggregation + func (a *SerialDiffAggregation) Lag(lag int) *SerialDiffAggregation + func (a *SerialDiffAggregation) Meta(metaData map[string]interface{}) *SerialDiffAggregation + func (a *SerialDiffAggregation) Source() (interface{}, error) + func (a *SerialDiffAggregation) SubAggregation(name string, subAggregation Aggregation) *SerialDiffAggregation + type SignificantTermsAggregation struct + func NewSignificantTermsAggregation() *SignificantTermsAggregation + func (a *SignificantTermsAggregation) BackgroundFilter(filter Query) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) ExecutionHint(hint string) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) Field(field string) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) Meta(metaData map[string]interface{}) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) MinDocCount(minDocCount int) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) RequiredSize(requiredSize int) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) ShardMinDocCount(shardMinDocCount int) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) ShardSize(shardSize int) *SignificantTermsAggregation + func (a *SignificantTermsAggregation) Source() (interface{}, error) + func (a *SignificantTermsAggregation) SubAggregation(name string, subAggregation Aggregation) *SignificantTermsAggregation + type SimpleMovAvgModel struct + func NewSimpleMovAvgModel() *SimpleMovAvgModel + func (m *SimpleMovAvgModel) Name() string + func (m *SimpleMovAvgModel) Settings() map[string]interface{} + type SimpleQueryStringQuery struct + func NewSimpleQueryStringQuery(text string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) AnalyzeWildcard(analyzeWildcard bool) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Analyzer(analyzer string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Boost(boost float64) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) DefaultOperator(defaultOperator string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Field(field string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) FieldWithBoost(field string, boost float64) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Flags(flags string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Lenient(lenient bool) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Locale(locale string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) LowercaseExpandedTerms(lowercaseExpandedTerms bool) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) MinimumShouldMatch(minimumShouldMatch string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) QueryName(queryName string) *SimpleQueryStringQuery + func (q *SimpleQueryStringQuery) Source() (interface{}, error) + type SmoothingModel interface + Source func() (interface{}, error) + Type func() string + type SortInfo struct + Ascending bool + Field string + IgnoreUnmapped *bool + Missing interface{} + NestedFilter Query + NestedPath string + SortMode string + func (info SortInfo) Source() (interface{}, error) + type Sorter interface + Source func() (interface{}, error) + type StatsAggregation struct + func NewStatsAggregation() *StatsAggregation + func (a *StatsAggregation) Field(field string) *StatsAggregation + func (a *StatsAggregation) Format(format string) *StatsAggregation + func (a *StatsAggregation) Meta(metaData map[string]interface{}) *StatsAggregation + func (a *StatsAggregation) Script(script *Script) *StatsAggregation + func (a *StatsAggregation) Source() (interface{}, error) + func (a *StatsAggregation) SubAggregation(name string, subAggregation Aggregation) *StatsAggregation + type StupidBackoffSmoothingModel struct + func NewStupidBackoffSmoothingModel(discount float64) *StupidBackoffSmoothingModel + func (sm *StupidBackoffSmoothingModel) Source() (interface{}, error) + func (sm *StupidBackoffSmoothingModel) Type() string + type SuggestField struct + func NewSuggestField() *SuggestField + func (f *SuggestField) ContextQuery(queries ...SuggesterContextQuery) *SuggestField + func (f *SuggestField) Input(input ...string) *SuggestField + func (f *SuggestField) MarshalJSON() ([]byte, error) + func (f *SuggestField) Output(output string) *SuggestField + func (f *SuggestField) Payload(payload interface{}) *SuggestField + func (f *SuggestField) Weight(weight int) *SuggestField + type SuggestResult map[string][]Suggestion + type SuggestService struct + func NewSuggestService(client *Client) *SuggestService + func (s *SuggestService) Do() (SuggestResult, error) + func (s *SuggestService) Index(indices ...string) *SuggestService + func (s *SuggestService) Preference(preference string) *SuggestService + func (s *SuggestService) Pretty(pretty bool) *SuggestService + func (s *SuggestService) Routing(routing string) *SuggestService + func (s *SuggestService) Suggester(suggester Suggester) *SuggestService + type Suggester interface + Name func() string + Source func(includeName bool) (interface{}, error) + type SuggesterCategoryMapping struct + func NewSuggesterCategoryMapping(name string) *SuggesterCategoryMapping + func (q *SuggesterCategoryMapping) DefaultValues(values ...string) *SuggesterCategoryMapping + func (q *SuggesterCategoryMapping) FieldName(fieldName string) *SuggesterCategoryMapping + func (q *SuggesterCategoryMapping) Source() (interface{}, error) + type SuggesterCategoryQuery struct + func NewSuggesterCategoryQuery(name string, values ...string) *SuggesterCategoryQuery + func (q *SuggesterCategoryQuery) Source() (interface{}, error) + func (q *SuggesterCategoryQuery) Values(values ...string) *SuggesterCategoryQuery + type SuggesterContextQuery interface + Source func() (interface{}, error) + type SuggesterGeoMapping struct + func NewSuggesterGeoMapping(name string) *SuggesterGeoMapping + func (q *SuggesterGeoMapping) DefaultLocations(locations ...*GeoPoint) *SuggesterGeoMapping + func (q *SuggesterGeoMapping) FieldName(fieldName string) *SuggesterGeoMapping + func (q *SuggesterGeoMapping) Neighbors(neighbors bool) *SuggesterGeoMapping + func (q *SuggesterGeoMapping) Precision(precision ...string) *SuggesterGeoMapping + func (q *SuggesterGeoMapping) Source() (interface{}, error) + type SuggesterGeoQuery struct + func NewSuggesterGeoQuery(name string, location *GeoPoint) *SuggesterGeoQuery + func (q *SuggesterGeoQuery) Precision(precision ...string) *SuggesterGeoQuery + func (q *SuggesterGeoQuery) Source() (interface{}, error) + type Suggestion struct + Length int + Offset int + Options []suggestionOption + Text string + type SumAggregation struct + func NewSumAggregation() *SumAggregation + func (a *SumAggregation) Field(field string) *SumAggregation + func (a *SumAggregation) Format(format string) *SumAggregation + func (a *SumAggregation) Meta(metaData map[string]interface{}) *SumAggregation + func (a *SumAggregation) Script(script *Script) *SumAggregation + func (a *SumAggregation) Source() (interface{}, error) + func (a *SumAggregation) SubAggregation(name string, subAggregation Aggregation) *SumAggregation + type SumBucketAggregation struct + func NewSumBucketAggregation() *SumBucketAggregation + func (a *SumBucketAggregation) BucketsPath(bucketsPaths ...string) *SumBucketAggregation + func (a *SumBucketAggregation) Format(format string) *SumBucketAggregation + func (a *SumBucketAggregation) GapInsertZeros() *SumBucketAggregation + func (a *SumBucketAggregation) GapPolicy(gapPolicy string) *SumBucketAggregation + func (a *SumBucketAggregation) GapSkip() *SumBucketAggregation + func (a *SumBucketAggregation) Meta(metaData map[string]interface{}) *SumBucketAggregation + func (a *SumBucketAggregation) Source() (interface{}, error) + func (a *SumBucketAggregation) SubAggregation(name string, subAggregation Aggregation) *SumBucketAggregation + type TemplateQuery struct + func NewTemplateQuery(name string) *TemplateQuery + func (q *TemplateQuery) Source() (interface{}, error) + func (q *TemplateQuery) Template(name string) *TemplateQuery + func (q *TemplateQuery) TemplateType(typ string) *TemplateQuery + func (q *TemplateQuery) Var(name string, value interface{}) *TemplateQuery + func (q *TemplateQuery) Vars(vars map[string]interface{}) *TemplateQuery + type TermQuery struct + func NewTermQuery(name string, value interface{}) *TermQuery + func (q *TermQuery) Boost(boost float64) *TermQuery + func (q *TermQuery) QueryName(queryName string) *TermQuery + func (q *TermQuery) Source() (interface{}, error) + type TermSuggester struct + func NewTermSuggester(name string) *TermSuggester + func (q *TermSuggester) Accuracy(accuracy float64) *TermSuggester + func (q *TermSuggester) Analyzer(analyzer string) *TermSuggester + func (q *TermSuggester) ContextQueries(queries ...SuggesterContextQuery) *TermSuggester + func (q *TermSuggester) ContextQuery(query SuggesterContextQuery) *TermSuggester + func (q *TermSuggester) Field(field string) *TermSuggester + func (q *TermSuggester) MaxEdits(maxEdits int) *TermSuggester + func (q *TermSuggester) MaxInspections(maxInspections int) *TermSuggester + func (q *TermSuggester) MaxTermFreq(maxTermFreq float64) *TermSuggester + func (q *TermSuggester) MinDocFreq(minDocFreq float64) *TermSuggester + func (q *TermSuggester) MinWordLength(minWordLength int) *TermSuggester + func (q *TermSuggester) Name() string + func (q *TermSuggester) PrefixLength(prefixLength int) *TermSuggester + func (q *TermSuggester) ShardSize(shardSize int) *TermSuggester + func (q *TermSuggester) Size(size int) *TermSuggester + func (q *TermSuggester) Sort(sort string) *TermSuggester + func (q *TermSuggester) Source(includeName bool) (interface{}, error) + func (q *TermSuggester) StringDistance(stringDistance string) *TermSuggester + func (q *TermSuggester) SuggestMode(suggestMode string) *TermSuggester + func (q *TermSuggester) Text(text string) *TermSuggester + type TermsAggregation struct + func NewTermsAggregation() *TermsAggregation + func (a *TermsAggregation) CollectionMode(collectionMode string) *TermsAggregation + func (a *TermsAggregation) Exclude(regexp string) *TermsAggregation + func (a *TermsAggregation) ExcludeTerms(terms ...string) *TermsAggregation + func (a *TermsAggregation) ExcludeWithFlags(regexp string, flags int) *TermsAggregation + func (a *TermsAggregation) ExecutionHint(hint string) *TermsAggregation + func (a *TermsAggregation) Field(field string) *TermsAggregation + func (a *TermsAggregation) Include(regexp string) *TermsAggregation + func (a *TermsAggregation) IncludeTerms(terms ...string) *TermsAggregation + func (a *TermsAggregation) IncludeWithFlags(regexp string, flags int) *TermsAggregation + func (a *TermsAggregation) Meta(metaData map[string]interface{}) *TermsAggregation + func (a *TermsAggregation) MinDocCount(minDocCount int) *TermsAggregation + func (a *TermsAggregation) Order(order string, asc bool) *TermsAggregation + func (a *TermsAggregation) OrderByAggregation(aggName string, asc bool) *TermsAggregation + func (a *TermsAggregation) OrderByAggregationAndMetric(aggName, metric string, asc bool) *TermsAggregation + func (a *TermsAggregation) OrderByCount(asc bool) *TermsAggregation + func (a *TermsAggregation) OrderByCountAsc() *TermsAggregation + func (a *TermsAggregation) OrderByCountDesc() *TermsAggregation + func (a *TermsAggregation) OrderByTerm(asc bool) *TermsAggregation + func (a *TermsAggregation) OrderByTermAsc() *TermsAggregation + func (a *TermsAggregation) OrderByTermDesc() *TermsAggregation + func (a *TermsAggregation) RequiredSize(requiredSize int) *TermsAggregation + func (a *TermsAggregation) Script(script *Script) *TermsAggregation + func (a *TermsAggregation) ShardMinDocCount(shardMinDocCount int) *TermsAggregation + func (a *TermsAggregation) ShardSize(shardSize int) *TermsAggregation + func (a *TermsAggregation) ShowTermDocCountError(showTermDocCountError bool) *TermsAggregation + func (a *TermsAggregation) Size(size int) *TermsAggregation + func (a *TermsAggregation) Source() (interface{}, error) + func (a *TermsAggregation) SubAggregation(name string, subAggregation Aggregation) *TermsAggregation + func (a *TermsAggregation) ValueType(valueType string) *TermsAggregation + type TermsQuery struct + func NewTermsQuery(name string, values ...interface{}) *TermsQuery + func (q *TermsQuery) Boost(boost float64) *TermsQuery + func (q *TermsQuery) QueryName(queryName string) *TermsQuery + func (q *TermsQuery) Source() (interface{}, error) + type TopHitsAggregation struct + func NewTopHitsAggregation() *TopHitsAggregation + func (a *TopHitsAggregation) Explain(explain bool) *TopHitsAggregation + func (a *TopHitsAggregation) FetchSource(fetchSource bool) *TopHitsAggregation + func (a *TopHitsAggregation) FetchSourceContext(fetchSourceContext *FetchSourceContext) *TopHitsAggregation + func (a *TopHitsAggregation) FieldDataField(fieldDataField string) *TopHitsAggregation + func (a *TopHitsAggregation) FieldDataFields(fieldDataFields ...string) *TopHitsAggregation + func (a *TopHitsAggregation) From(from int) *TopHitsAggregation + func (a *TopHitsAggregation) Highlight(highlight *Highlight) *TopHitsAggregation + func (a *TopHitsAggregation) Highlighter() *Highlight + func (a *TopHitsAggregation) NoFields() *TopHitsAggregation + func (a *TopHitsAggregation) ScriptField(scriptField *ScriptField) *TopHitsAggregation + func (a *TopHitsAggregation) ScriptFields(scriptFields ...*ScriptField) *TopHitsAggregation + func (a *TopHitsAggregation) Size(size int) *TopHitsAggregation + func (a *TopHitsAggregation) Sort(field string, ascending bool) *TopHitsAggregation + func (a *TopHitsAggregation) SortBy(sorter ...Sorter) *TopHitsAggregation + func (a *TopHitsAggregation) SortWithInfo(info SortInfo) *TopHitsAggregation + func (a *TopHitsAggregation) Source() (interface{}, error) + func (a *TopHitsAggregation) TrackScores(trackScores bool) *TopHitsAggregation + func (a *TopHitsAggregation) Version(version bool) *TopHitsAggregation + type TypeQuery struct + func NewTypeQuery(typ string) *TypeQuery + func (q *TypeQuery) Source() (interface{}, error) + type UpdateResponse struct + Created bool + GetResult *GetResult + Id string + Index string + Type string + Version int + type UpdateService struct + func NewUpdateService(client *Client) *UpdateService + func (b *UpdateService) ConsistencyLevel(consistencyLevel string) *UpdateService + func (b *UpdateService) DetectNoop(detectNoop bool) *UpdateService + func (b *UpdateService) Do() (*UpdateResponse, error) + func (b *UpdateService) Doc(doc interface{}) *UpdateService + func (b *UpdateService) DocAsUpsert(docAsUpsert bool) *UpdateService + func (b *UpdateService) Fields(fields ...string) *UpdateService + func (b *UpdateService) Id(id string) *UpdateService + func (b *UpdateService) Index(name string) *UpdateService + func (b *UpdateService) Parent(parent string) *UpdateService + func (b *UpdateService) Pretty(pretty bool) *UpdateService + func (b *UpdateService) Refresh(refresh bool) *UpdateService + func (b *UpdateService) ReplicationType(replicationType string) *UpdateService + func (b *UpdateService) RetryOnConflict(retryOnConflict int) *UpdateService + func (b *UpdateService) Routing(routing string) *UpdateService + func (b *UpdateService) Script(script *Script) *UpdateService + func (b *UpdateService) ScriptedUpsert(scriptedUpsert bool) *UpdateService + func (b *UpdateService) Timeout(timeout string) *UpdateService + func (b *UpdateService) Type(typ string) *UpdateService + func (b *UpdateService) Upsert(doc interface{}) *UpdateService + func (b *UpdateService) Version(version int64) *UpdateService + func (b *UpdateService) VersionType(versionType string) *UpdateService + type ValueCountAggregation struct + func NewValueCountAggregation() *ValueCountAggregation + func (a *ValueCountAggregation) Field(field string) *ValueCountAggregation + func (a *ValueCountAggregation) Format(format string) *ValueCountAggregation + func (a *ValueCountAggregation) Meta(metaData map[string]interface{}) *ValueCountAggregation + func (a *ValueCountAggregation) Script(script *Script) *ValueCountAggregation + func (a *ValueCountAggregation) Source() (interface{}, error) + func (a *ValueCountAggregation) SubAggregation(name string, subAggregation Aggregation) *ValueCountAggregation + type WeightFactorFunction struct + func NewWeightFactorFunction(weight float64) *WeightFactorFunction + func (fn *WeightFactorFunction) GetWeight() *float64 + func (fn *WeightFactorFunction) Name() string + func (fn *WeightFactorFunction) Source() (interface{}, error) + func (fn *WeightFactorFunction) Weight(weight float64) *WeightFactorFunction + type WildcardQuery struct + func NewWildcardQuery(name, wildcard string) *WildcardQuery + func (q *WildcardQuery) Boost(boost float64) *WildcardQuery + func (q *WildcardQuery) QueryName(queryName string) *WildcardQuery + func (q *WildcardQuery) Rewrite(rewrite string) *WildcardQuery + func (q *WildcardQuery) Source() (interface{}, error)