Documentation ¶
Overview ¶
Package elastic provides an interface to the Elasticsearch server (http://www.elasticsearch.org/).
The first thing you do is to create a Client. If you have Elasticsearch installed and running with its default settings (i.e. available at http://127.0.0.1:9200), all you need to do is:
client, err := elastic.NewClient() if err != nil { // Handle error }
If your Elasticsearch server is running on a different IP and/or port, just provide a URL to NewClient:
// Create a client and connect to http://192.168.2.10:9201 client, err := elastic.NewClient(elastic.SetURL("http://192.168.2.10:9201")) if err != nil { // Handle error }
You can pass many more configuration parameters to NewClient. Review the documentation of NewClient for more information.
If no Elasticsearch server is available, services will fail when creating a new request and will return ErrNoClient.
A Client provides services. The services usually come with a variety of methods to prepare the query and a Do function to execute it against the Elasticsearch REST interface and return a response. Here is an example of the IndexExists service that checks if a given index already exists.
exists, err := client.IndexExists("twitter").Do() if err != nil { // Handle error } if !exists { // Index does not exist yet. }
Look up the documentation for Client to get an idea of the services provided and what kinds of responses you get when executing the Do function of a service. Also see the wiki on Github for more details.
Example ¶
package main import ( "encoding/json" "fmt" "log" "os" "reflect" "time" elastic "gopkg.in/olivere/elastic.v3" ) type Tweet struct { User string `json:"user"` Message string `json:"message"` Retweets int `json:"retweets"` Image string `json:"image,omitempty"` Created time.Time `json:"created,omitempty"` Tags []string `json:"tags,omitempty"` Location string `json:"location,omitempty"` Suggest *elastic.SuggestField `json:"suggest_field,omitempty"` } func main() { errorlog := log.New(os.Stdout, "APP ", log.LstdFlags) // Obtain a client. You can also provide your own HTTP client here. client, err := elastic.NewClient(elastic.SetErrorLog(errorlog)) if err != nil { // Handle error panic(err) } // Trace request and response details like this //client.SetTracer(log.New(os.Stdout, "", 0)) // Ping the Elasticsearch server to get e.g. the version number info, code, err := client.Ping("http://127.0.0.1:9200").Do() if err != nil { // Handle error panic(err) } fmt.Printf("Elasticsearch returned with code %d and version %s", code, info.Version.Number) // Getting the ES version number is quite common, so there's a shortcut esversion, err := client.ElasticsearchVersion("http://127.0.0.1:9200") if err != nil { // Handle error panic(err) } fmt.Printf("Elasticsearch version %s", esversion) // Use the IndexExists service to check if a specified index exists. exists, err := client.IndexExists("twitter").Do() if err != nil { // Handle error panic(err) } if !exists { // Create a new index. createIndex, err := client.CreateIndex("twitter").Do() if err != nil { // Handle error panic(err) } if !createIndex.Acknowledged { // Not acknowledged } } // Index a tweet (using JSON serialization) tweet1 := Tweet{User: "olivere", Message: "Take Five", Retweets: 0} put1, err := client.Index(). Index("twitter"). Type("tweet"). Id("1"). BodyJson(tweet1). Do() if err != nil { // Handle error panic(err) } fmt.Printf("Indexed tweet %s to index %s, type %s\n", put1.Id, put1.Index, put1.Type) // Index a second tweet (by string) tweet2 := `{"user" : "olivere", "message" : "It's a Raggy Waltz"}` put2, err := client.Index(). Index("twitter"). Type("tweet"). Id("2"). BodyString(tweet2). Do() if err != nil { // Handle error panic(err) } fmt.Printf("Indexed tweet %s to index %s, type %s\n", put2.Id, put2.Index, put2.Type) // Get tweet with specified ID get1, err := client.Get(). Index("twitter"). Type("tweet"). Id("1"). Do() if err != nil { // Handle error panic(err) } if get1.Found { fmt.Printf("Got document %s in version %d from index %s, type %s\n", get1.Id, get1.Version, get1.Index, get1.Type) } // Flush to make sure the documents got written. _, err = client.Flush().Index("twitter").Do() if err != nil { panic(err) } // Search with a term query termQuery := elastic.NewTermQuery("user", "olivere") searchResult, err := client.Search(). Index("twitter"). // search in index "twitter" Query(termQuery). // specify the query Sort("user", true). // sort by "user" field, ascending From(0).Size(10). // take documents 0-9 Pretty(true). // pretty print request and response JSON Do() // execute if err != nil { // Handle error panic(err) } // searchResult is of type SearchResult and returns hits, suggestions, // and all kinds of other information from Elasticsearch. fmt.Printf("Query took %d milliseconds\n", searchResult.TookInMillis) // Each is a convenience function that iterates over hits in a search result. // It makes sure you don't need to check for nil values in the response. // However, it ignores errors in serialization. If you want full control // over iterating the hits, see below. var ttyp Tweet for _, item := range searchResult.Each(reflect.TypeOf(ttyp)) { t := item.(Tweet) fmt.Printf("Tweet by %s: %s\n", t.User, t.Message) } // TotalHits is another convenience function that works even when something goes wrong. fmt.Printf("Found a total of %d tweets\n", searchResult.TotalHits()) // Here's how you iterate through results with full control over each step. if searchResult.Hits.TotalHits > 0 { fmt.Printf("Found a total of %d tweets\n", searchResult.Hits.TotalHits) // Iterate through results for _, hit := range searchResult.Hits.Hits { // hit.Index contains the name of the index // Deserialize hit.Source into a Tweet (could also be just a map[string]interface{}). var t Tweet err := json.Unmarshal(*hit.Source, &t) if err != nil { // Deserialization failed } // Work with tweet fmt.Printf("Tweet by %s: %s\n", t.User, t.Message) } } else { // No hits fmt.Print("Found no tweets\n") } // Update a tweet by the update API of Elasticsearch. // We just increment the number of retweets. script := elastic.NewScript("ctx._source.retweets += num").Param("num", 1) update, err := client.Update().Index("twitter").Type("tweet").Id("1"). Script(script). Upsert(map[string]interface{}{"retweets": 0}). Do() if err != nil { // Handle error panic(err) } fmt.Printf("New version of tweet %q is now %d", update.Id, update.Version) // ... // Delete an index. deleteIndex, err := client.DeleteIndex("twitter").Do() if err != nil { // Handle error panic(err) } if !deleteIndex.Acknowledged { // Not acknowledged } }
Output:
Index ¶
- Constants
- Variables
- func IsNotFound(err interface{}) bool
- func IsTimeout(err interface{}) bool
- type Aggregation
- type AggregationBucketFilters
- type AggregationBucketHistogramItem
- type AggregationBucketHistogramItems
- type AggregationBucketKeyItem
- type AggregationBucketKeyItems
- type AggregationBucketKeyedRangeItems
- type AggregationBucketRangeItem
- type AggregationBucketRangeItems
- type AggregationBucketSignificantTerm
- type AggregationBucketSignificantTerms
- type AggregationExtendedStatsMetric
- type AggregationGeoBoundsMetric
- type AggregationPercentilesMetric
- type AggregationPipelineBucketMetricValue
- type AggregationPipelineDerivative
- type AggregationPipelineSimpleValue
- type AggregationPipelineStatsMetric
- type AggregationSingleBucket
- type AggregationStatsMetric
- type AggregationTopHitsMetric
- type AggregationValueMetric
- type Aggregations
- 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) Sampler(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) StatsBucket(name string) (*AggregationPipelineStatsMetric, 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 AliasAction
- type AliasAddAction
- func (a *AliasAddAction) Filter(filter Query) *AliasAddAction
- func (a *AliasAddAction) Index(index ...string) *AliasAddAction
- func (a *AliasAddAction) IndexRouting(routing string) *AliasAddAction
- func (a *AliasAddAction) Routing(routing string) *AliasAddAction
- func (a *AliasAddAction) SearchRouting(routing ...string) *AliasAddAction
- func (a *AliasAddAction) Source() (interface{}, error)
- func (a *AliasAddAction) Validate() error
- type AliasRemoveAction
- type AliasResult
- type AliasService
- func (s *AliasService) Action(action ...AliasAction) *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) DoC(ctx context.Context) (*AliasResult, error)
- func (s *AliasService) Pretty(pretty bool) *AliasService
- func (s *AliasService) Remove(indexName string, aliasName string) *AliasService
- type AliasesResult
- type AliasesService
- type 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
- 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 Backoff
- type BackoffFunc
- type BackoffRetrier
- type 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
- 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
- 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
- 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 BulkAfterFunc
- type BulkBeforeFunc
- type BulkDeleteRequest
- func (r *BulkDeleteRequest) Id(id string) *BulkDeleteRequest
- func (r *BulkDeleteRequest) Index(index string) *BulkDeleteRequest
- func (r *BulkDeleteRequest) Parent(parent 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
- 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 BulkProcessor
- type BulkProcessorService
- func (s *BulkProcessorService) After(fn BulkAfterFunc) *BulkProcessorService
- func (s *BulkProcessorService) Before(fn BulkBeforeFunc) *BulkProcessorService
- func (s *BulkProcessorService) BulkActions(bulkActions int) *BulkProcessorService
- func (s *BulkProcessorService) BulkSize(bulkSize int) *BulkProcessorService
- func (s *BulkProcessorService) Do() (*BulkProcessor, error)
- func (s *BulkProcessorService) FlushInterval(interval time.Duration) *BulkProcessorService
- func (s *BulkProcessorService) Name(name string) *BulkProcessorService
- func (s *BulkProcessorService) Stats(wantStats bool) *BulkProcessorService
- func (s *BulkProcessorService) Workers(num int) *BulkProcessorService
- type BulkProcessorStats
- type BulkProcessorWorkerStats
- type BulkResponse
- 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
- type BulkService
- func (s *BulkService) Add(requests ...BulkableRequest) *BulkService
- func (s *BulkService) Do() (*BulkResponse, error)
- func (s *BulkService) DoC(ctx context.Context) (*BulkResponse, error)
- func (s *BulkService) EstimatedSizeInBytes() int64
- 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) Reset()
- func (s *BulkService) Timeout(timeout string) *BulkService
- func (s *BulkService) Type(typ string) *BulkService
- type BulkUpdateRequest
- func (r *BulkUpdateRequest) DetectNoop(detectNoop bool) *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) Source() ([]string, error)
- 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
- type BulkableRequest
- type CandidateGenerator
- type 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 ChiSquareSignificanceHeuristic
- func (sh *ChiSquareSignificanceHeuristic) BackgroundIsSuperset(backgroundIsSuperset bool) *ChiSquareSignificanceHeuristic
- func (sh *ChiSquareSignificanceHeuristic) IncludeNegatives(includeNegatives bool) *ChiSquareSignificanceHeuristic
- func (sh *ChiSquareSignificanceHeuristic) Name() string
- func (sh *ChiSquareSignificanceHeuristic) Source() (interface{}, error)
- type 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
- type ClearScrollService
- func (s *ClearScrollService) Do() (*ClearScrollResponse, error)
- func (s *ClearScrollService) DoC(ctx context.Context) (*ClearScrollResponse, error)
- func (s *ClearScrollService) Pretty(pretty bool) *ClearScrollService
- func (s *ClearScrollService) ScrollId(scrollIds ...string) *ClearScrollService
- func (s *ClearScrollService) Validate() error
- type Client
- func (c *Client) Alias() *AliasService
- func (c *Client) Aliases() *AliasesService
- func (c *Client) Bulk() *BulkService
- func (c *Client) BulkProcessor() *BulkProcessorService
- 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) DeleteWarmer() *IndicesDeleteWarmerService
- 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) FieldStats(indices ...string) *FieldStatsService
- func (c *Client) Flush(indices ...string) *IndicesFlushService
- func (c *Client) Forcemerge(indices ...string) *IndicesForcemergeService
- func (c *Client) Get() *GetService
- func (c *Client) GetMapping() *IndicesGetMappingService
- func (c *Client) GetTemplate() *GetTemplateService
- func (c *Client) GetWarmer() *IndicesGetWarmerService
- func (c *Client) HasPlugin(name string) (bool, error)
- func (c *Client) Index() *IndexService
- func (c *Client) IndexAnalyze() *IndicesAnalyzeService
- 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) IndexPutSettings(indices ...string) *IndicesPutSettingsService
- 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) MultiTermVectors() *MultiTermvectorService
- func (c *Client) NodesInfo() *NodesInfoService
- func (c *Client) NodesStats() *NodesStatsService
- 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) PerformRequestC(ctx context.Context, method, path string, params url.Values, body interface{}, ...) (*Response, error)
- func (c *Client) Ping(url string) *PingService
- func (c *Client) Plugins() ([]string, error)
- func (c *Client) PutMapping() *IndicesPutMappingService
- func (c *Client) PutTemplate() *PutTemplateService
- func (c *Client) PutWarmer() *IndicesPutWarmerService
- func (c *Client) Refresh(indices ...string) *RefreshService
- func (c *Client) Reindex(sourceIndex, targetIndex string) *Reindexer
- func (c *Client) ReindexTask() *ReindexService
- 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) TasksCancel() *TasksCancelService
- func (c *Client) TasksList() *TasksListService
- func (c *Client) TermVectors(index, typ string) *TermvectorsService
- func (c *Client) TypeExists() *IndicesExistsTypeService
- func (c *Client) Update() *UpdateService
- func (c *Client) UpdateByQuery(indices ...string) *UpdateByQueryService
- 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 SetBasicAuth(username, password string) ClientOptionFunc
- func SetDecoder(decoder Decoder) ClientOptionFunc
- func SetErrorLog(logger Logger) 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 SetInfoLog(logger Logger) ClientOptionFunc
- func SetMaxRetries(maxRetries int) ClientOptionFuncdeprecated
- func SetRequiredPlugins(plugins ...string) ClientOptionFunc
- func SetRetrier(retrier Retrier) ClientOptionFunc
- func SetScheme(scheme string) ClientOptionFunc
- func SetSendGetBodyAs(httpMethod string) ClientOptionFunc
- func SetSniff(enabled bool) ClientOptionFunc
- func SetSnifferCallback(f SnifferCallback) ClientOptionFunc
- func SetSnifferInterval(interval time.Duration) ClientOptionFunc
- func SetSnifferTimeout(timeout time.Duration) ClientOptionFunc
- func SetSnifferTimeoutStartup(timeout time.Duration) ClientOptionFunc
- func SetTraceLog(logger Logger) ClientOptionFunc
- func SetURL(urls ...string) ClientOptionFunc
- type ClusterHealthResponse
- type ClusterHealthService
- func (s *ClusterHealthService) Do() (*ClusterHealthResponse, error)
- func (s *ClusterHealthService) DoC(ctx context.Context) (*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
- type ClusterShardHealth
- type ClusterStateResponse
- type ClusterStateService
- func (s *ClusterStateService) AllowNoIndices(allowNoIndices bool) *ClusterStateService
- func (s *ClusterStateService) Do() (*ClusterStateResponse, error)
- func (s *ClusterStateService) DoC(ctx context.Context) (*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
- type ClusterStatsIndicesCompletion
- type ClusterStatsIndicesDocs
- type ClusterStatsIndicesFieldData
- type ClusterStatsIndicesFilterCache
- type ClusterStatsIndicesIdCache
- type ClusterStatsIndicesPercolate
- type ClusterStatsIndicesSegments
- type ClusterStatsIndicesShards
- type ClusterStatsIndicesShardsIndex
- type ClusterStatsIndicesShardsIndexFloat64MinMax
- type ClusterStatsIndicesShardsIndexIntMinMax
- type ClusterStatsIndicesStore
- type ClusterStatsNodes
- type ClusterStatsNodesCount
- type ClusterStatsNodesFsStats
- type ClusterStatsNodesJvmStats
- type ClusterStatsNodesJvmStatsMem
- type ClusterStatsNodesJvmStatsVersion
- type ClusterStatsNodesOsStats
- type ClusterStatsNodesOsStatsCPU
- type ClusterStatsNodesOsStatsMem
- type ClusterStatsNodesPlugin
- type ClusterStatsNodesProcessStats
- type ClusterStatsNodesProcessStatsCPU
- type ClusterStatsNodesProcessStatsOpenFileDescriptors
- type ClusterStatsResponse
- type ClusterStatsService
- func (s *ClusterStatsService) Do() (*ClusterStatsResponse, error)
- func (s *ClusterStatsService) DoC(ctx context.Context) (*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
- 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
- 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 ConstantBackoff
- type ConstantScoreQuery
- type CountResponse
- type 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) DoC(ctx context.Context) (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
- 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
- func (a *DateHistogramAggregation) ExtendedBounds(min, max interface{}) *DateHistogramAggregation
- func (a *DateHistogramAggregation) ExtendedBoundsMax(max interface{}) *DateHistogramAggregation
- func (a *DateHistogramAggregation) ExtendedBoundsMin(min interface{}) *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) Missing(missing interface{}) *DateHistogramAggregation
- func (a *DateHistogramAggregation) Offset(offset string) *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) Script(script *Script) *DateHistogramAggregation
- func (a *DateHistogramAggregation) Source() (interface{}, error)
- func (a *DateHistogramAggregation) SubAggregation(name string, subAggregation Aggregation) *DateHistogramAggregation
- func (a *DateHistogramAggregation) TimeZone(timeZone string) *DateHistogramAggregation
- type 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
- type Decoder
- type DefaultDecoder
- type DeleteByQueryResult
- type 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) DoC(ctx context.Context) (*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
- type DeleteService
- func (s *DeleteService) Consistency(consistency string) *DeleteService
- func (s *DeleteService) Do() (*DeleteResponse, error)
- func (s *DeleteService) DoC(ctx context.Context) (*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
- type DeleteTemplateService
- func (s *DeleteTemplateService) Do() (*DeleteTemplateResponse, error)
- func (s *DeleteTemplateService) DoC(ctx context.Context) (*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 DeleteWarmerResponse
- type 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
- 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
- type DiscoveryNode
- type EWMAMovAvgModel
- type Error
- type ErrorDetails
- type ExistsQuery
- type ExistsService
- func (s *ExistsService) Do() (bool, error)
- func (s *ExistsService) DoC(ctx context.Context) (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
- type 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) DoC(ctx context.Context) (*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 ExponentialBackoff
- type 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
- 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 FailedNodeException
- type 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
- 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 FieldStatistics
- type FieldStats
- type FieldStatsComparison
- type FieldStatsConstraints
- type FieldStatsRequest
- type FieldStatsResponse
- type FieldStatsService
- func (s *FieldStatsService) AllowNoIndices(allowNoIndices bool) *FieldStatsService
- func (s *FieldStatsService) BodyJson(body interface{}) *FieldStatsService
- func (s *FieldStatsService) BodyString(body string) *FieldStatsService
- func (s *FieldStatsService) ClusterLevel() *FieldStatsService
- func (s *FieldStatsService) Do() (*FieldStatsResponse, error)
- func (s *FieldStatsService) DoC(ctx context.Context) (*FieldStatsResponse, error)
- func (s *FieldStatsService) ExpandWildcards(expandWildcards string) *FieldStatsService
- func (s *FieldStatsService) Fields(fields ...string) *FieldStatsService
- func (s *FieldStatsService) IgnoreUnavailable(ignoreUnavailable bool) *FieldStatsService
- func (s *FieldStatsService) Index(index ...string) *FieldStatsService
- func (s *FieldStatsService) IndicesLevel() *FieldStatsService
- func (s *FieldStatsService) Level(level string) *FieldStatsService
- func (s *FieldStatsService) Pretty(pretty bool) *FieldStatsService
- func (s *FieldStatsService) Validate() error
- type 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
- 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
- func (a *FiltersAggregation) Filter(filter Query) *FiltersAggregation
- func (a *FiltersAggregation) FilterWithName(name string, 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
- 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
- type 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
- 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 GNDSignificanceHeuristic
- type 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
- 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
- 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
- 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
- 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
- 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 GeoHashGridAggregation
- func (a *GeoHashGridAggregation) Field(field string) *GeoHashGridAggregation
- func (a *GeoHashGridAggregation) Meta(metaData map[string]interface{}) *GeoHashGridAggregation
- func (a *GeoHashGridAggregation) Precision(precision int) *GeoHashGridAggregation
- func (a *GeoHashGridAggregation) ShardSize(shardSize int) *GeoHashGridAggregation
- func (a *GeoHashGridAggregation) Size(size int) *GeoHashGridAggregation
- func (a *GeoHashGridAggregation) Source() (interface{}, error)
- func (a *GeoHashGridAggregation) SubAggregation(name string, subAggregation Aggregation) *GeoHashGridAggregation
- type GeoPoint
- type GeoPolygonQuery
- type GetResult
- type GetService
- func (s *GetService) Do() (*GetResult, error)
- func (s *GetService) DoC(ctx context.Context) (*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
- type GetTemplateService
- func (s *GetTemplateService) Do() (*GetTemplateResponse, error)
- func (s *GetTemplateService) DoC(ctx context.Context) (*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
- type 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
- 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
- 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
- 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
- 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) Missing(missing interface{}) *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
- type 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
- type IndexDeleteByQueryResult
- type IndexFieldStats
- type IndexResponse
- type 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) DoC(ctx context.Context) (*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
- type IndexStatsCompletion
- type IndexStatsDetails
- type IndexStatsDocs
- type IndexStatsFielddata
- type IndexStatsFilterCache
- type IndexStatsFlush
- type IndexStatsGet
- type IndexStatsIdCache
- type IndexStatsIndexing
- type IndexStatsMerges
- type IndexStatsPercolate
- type IndexStatsQueryCache
- type IndexStatsRefresh
- type IndexStatsSearch
- type IndexStatsSegments
- type IndexStatsStore
- type IndexStatsSuggest
- type IndexStatsTranslog
- type IndexStatsWarmer
- type IndicesAnalyzeRequest
- type IndicesAnalyzeResponse
- type IndicesAnalyzeResponseDetail
- type IndicesAnalyzeResponseToken
- type IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Analyzer(analyzer string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Attributes(attributes ...string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) BodyJson(body interface{}) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) BodyString(body string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) CharFilter(charFilter ...string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Do() (*IndicesAnalyzeResponse, error)
- func (s *IndicesAnalyzeService) DoC(ctx context.Context) (*IndicesAnalyzeResponse, error)
- func (s *IndicesAnalyzeService) Explain(explain bool) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Field(field string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Filter(filter ...string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Format(format string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Index(index string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) PreferLocal(preferLocal bool) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Pretty(pretty bool) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Request(request *IndicesAnalyzeRequest) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Text(text ...string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Tokenizer(tokenizer string) *IndicesAnalyzeService
- func (s *IndicesAnalyzeService) Validate() error
- type IndicesCloseResponse
- type IndicesCloseService
- func (s *IndicesCloseService) AllowNoIndices(allowNoIndices bool) *IndicesCloseService
- func (s *IndicesCloseService) Do() (*IndicesCloseResponse, error)
- func (s *IndicesCloseService) DoC(ctx context.Context) (*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
- type 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) DoC(ctx context.Context) (*IndicesCreateResult, error)
- func (b *IndicesCreateService) Index(index string) *IndicesCreateService
- func (s *IndicesCreateService) MasterTimeout(masterTimeout string) *IndicesCreateService
- func (b *IndicesCreateService) Pretty(pretty bool) *IndicesCreateService
- func (s *IndicesCreateService) Timeout(timeout string) *IndicesCreateService
- type IndicesDeleteResponse
- type IndicesDeleteService
- func (s *IndicesDeleteService) Do() (*IndicesDeleteResponse, error)
- func (s *IndicesDeleteService) DoC(ctx context.Context) (*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
- type IndicesDeleteTemplateService
- func (s *IndicesDeleteTemplateService) Do() (*IndicesDeleteTemplateResponse, error)
- func (s *IndicesDeleteTemplateService) DoC(ctx context.Context) (*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 IndicesDeleteWarmerService
- func (s *IndicesDeleteWarmerService) Do() (*DeleteWarmerResponse, error)
- func (s *IndicesDeleteWarmerService) DoC(ctx context.Context) (*DeleteWarmerResponse, error)
- func (s *IndicesDeleteWarmerService) Index(indices ...string) *IndicesDeleteWarmerService
- func (s *IndicesDeleteWarmerService) MasterTimeout(masterTimeout string) *IndicesDeleteWarmerService
- func (s *IndicesDeleteWarmerService) Name(name ...string) *IndicesDeleteWarmerService
- func (s *IndicesDeleteWarmerService) Pretty(pretty bool) *IndicesDeleteWarmerService
- func (s *IndicesDeleteWarmerService) Validate() error
- type IndicesExistsService
- func (s *IndicesExistsService) AllowNoIndices(allowNoIndices bool) *IndicesExistsService
- func (s *IndicesExistsService) Do() (bool, error)
- func (s *IndicesExistsService) DoC(ctx context.Context) (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
- func (s *IndicesExistsTemplateService) Do() (bool, error)
- func (s *IndicesExistsTemplateService) DoC(ctx context.Context) (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
- func (s *IndicesExistsTypeService) AllowNoIndices(allowNoIndices bool) *IndicesExistsTypeService
- func (s *IndicesExistsTypeService) Do() (bool, error)
- func (s *IndicesExistsTypeService) DoC(ctx context.Context) (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
- type IndicesFlushService
- func (s *IndicesFlushService) AllowNoIndices(allowNoIndices bool) *IndicesFlushService
- func (s *IndicesFlushService) Do() (*IndicesFlushResponse, error)
- func (s *IndicesFlushService) DoC(ctx context.Context) (*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 IndicesForcemergeResponse
- type IndicesForcemergeService
- func (s *IndicesForcemergeService) AllowNoIndices(allowNoIndices bool) *IndicesForcemergeService
- func (s *IndicesForcemergeService) Do() (*IndicesForcemergeResponse, error)
- func (s *IndicesForcemergeService) DoC(ctx context.Context) (*IndicesForcemergeResponse, error)
- func (s *IndicesForcemergeService) ExpandWildcards(expandWildcards string) *IndicesForcemergeService
- func (s *IndicesForcemergeService) Flush(flush bool) *IndicesForcemergeService
- func (s *IndicesForcemergeService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesForcemergeService
- func (s *IndicesForcemergeService) Index(index ...string) *IndicesForcemergeService
- func (s *IndicesForcemergeService) MaxNumSegments(maxNumSegments interface{}) *IndicesForcemergeService
- func (s *IndicesForcemergeService) OnlyExpungeDeletes(onlyExpungeDeletes bool) *IndicesForcemergeService
- func (s *IndicesForcemergeService) OperationThreading(operationThreading interface{}) *IndicesForcemergeService
- func (s *IndicesForcemergeService) Pretty(pretty bool) *IndicesForcemergeService
- func (s *IndicesForcemergeService) Validate() error
- func (s *IndicesForcemergeService) WaitForMerge(waitForMerge bool) *IndicesForcemergeService
- type IndicesGetMappingService
- func (s *IndicesGetMappingService) AllowNoIndices(allowNoIndices bool) *IndicesGetMappingService
- func (s *IndicesGetMappingService) Do() (map[string]interface{}, error)
- func (s *IndicesGetMappingService) DoC(ctx context.Context) (map[string]interface{}, error)
- func (s *IndicesGetMappingService) ExpandWildcards(expandWildcards string) *IndicesGetMappingService
- func (s *IndicesGetMappingService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesGetMappingService
- func (s *IndicesGetMappingService) Index(indices ...string) *IndicesGetMappingService
- func (s *IndicesGetMappingService) Local(local bool) *IndicesGetMappingService
- func (s *IndicesGetMappingService) Pretty(pretty bool) *IndicesGetMappingService
- func (s *IndicesGetMappingService) Type(types ...string) *IndicesGetMappingService
- func (s *IndicesGetMappingService) Validate() error
- type IndicesGetResponse
- type IndicesGetService
- func (s *IndicesGetService) AllowNoIndices(allowNoIndices bool) *IndicesGetService
- func (s *IndicesGetService) Do() (map[string]*IndicesGetResponse, error)
- func (s *IndicesGetService) DoC(ctx context.Context) (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
- type IndicesGetSettingsService
- func (s *IndicesGetSettingsService) AllowNoIndices(allowNoIndices bool) *IndicesGetSettingsService
- func (s *IndicesGetSettingsService) Do() (map[string]*IndicesGetSettingsResponse, error)
- func (s *IndicesGetSettingsService) DoC(ctx context.Context) (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
- type IndicesGetTemplateService
- func (s *IndicesGetTemplateService) Do() (map[string]*IndicesGetTemplateResponse, error)
- func (s *IndicesGetTemplateService) DoC(ctx context.Context) (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 IndicesGetWarmerService
- func (s *IndicesGetWarmerService) AllowNoIndices(allowNoIndices bool) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Do() (map[string]interface{}, error)
- func (s *IndicesGetWarmerService) DoC(ctx context.Context) (map[string]interface{}, error)
- func (s *IndicesGetWarmerService) ExpandWildcards(expandWildcards string) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Index(indices ...string) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Local(local bool) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Name(name ...string) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Pretty(pretty bool) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Type(typ ...string) *IndicesGetWarmerService
- func (s *IndicesGetWarmerService) Validate() error
- type IndicesOpenResponse
- type IndicesOpenService
- func (s *IndicesOpenService) AllowNoIndices(allowNoIndices bool) *IndicesOpenService
- func (s *IndicesOpenService) Do() (*IndicesOpenResponse, error)
- func (s *IndicesOpenService) DoC(ctx context.Context) (*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 IndicesPutMappingService
- func (s *IndicesPutMappingService) AllowNoIndices(allowNoIndices bool) *IndicesPutMappingService
- func (s *IndicesPutMappingService) BodyJson(mapping map[string]interface{}) *IndicesPutMappingService
- func (s *IndicesPutMappingService) BodyString(mapping string) *IndicesPutMappingService
- func (s *IndicesPutMappingService) Do() (*PutMappingResponse, error)
- func (s *IndicesPutMappingService) DoC(ctx context.Context) (*PutMappingResponse, error)
- func (s *IndicesPutMappingService) ExpandWildcards(expandWildcards string) *IndicesPutMappingService
- func (s *IndicesPutMappingService) IgnoreConflicts(ignoreConflicts bool) *IndicesPutMappingService
- func (s *IndicesPutMappingService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesPutMappingService
- func (s *IndicesPutMappingService) Index(indices ...string) *IndicesPutMappingService
- func (s *IndicesPutMappingService) MasterTimeout(masterTimeout string) *IndicesPutMappingService
- func (s *IndicesPutMappingService) Pretty(pretty bool) *IndicesPutMappingService
- func (s *IndicesPutMappingService) Timeout(timeout string) *IndicesPutMappingService
- func (s *IndicesPutMappingService) Type(typ string) *IndicesPutMappingService
- func (s *IndicesPutMappingService) Validate() error
- type IndicesPutSettingsResponse
- type IndicesPutSettingsService
- func (s *IndicesPutSettingsService) AllowNoIndices(allowNoIndices bool) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) BodyJson(body interface{}) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) BodyString(body string) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) Do() (*IndicesPutSettingsResponse, error)
- func (s *IndicesPutSettingsService) DoC(ctx context.Context) (*IndicesPutSettingsResponse, error)
- func (s *IndicesPutSettingsService) ExpandWildcards(expandWildcards string) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) FlatSettings(flatSettings bool) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) Index(indices ...string) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) MasterTimeout(masterTimeout string) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) Pretty(pretty bool) *IndicesPutSettingsService
- func (s *IndicesPutSettingsService) Validate() error
- type IndicesPutTemplateResponse
- type 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) DoC(ctx context.Context) (*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 IndicesPutWarmerService
- func (s *IndicesPutWarmerService) AllowNoIndices(allowNoIndices bool) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) BodyJson(mapping map[string]interface{}) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) BodyString(mapping string) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) Do() (*PutWarmerResponse, error)
- func (s *IndicesPutWarmerService) DoC(ctx context.Context) (*PutWarmerResponse, error)
- func (s *IndicesPutWarmerService) ExpandWildcards(expandWildcards string) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) IgnoreUnavailable(ignoreUnavailable bool) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) Index(indices ...string) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) MasterTimeout(masterTimeout string) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) Name(name string) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) Pretty(pretty bool) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) RequestCache(requestCache bool) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) Type(typ ...string) *IndicesPutWarmerService
- func (s *IndicesPutWarmerService) Validate() error
- type IndicesQuery
- type IndicesStatsResponse
- type IndicesStatsService
- func (s *IndicesStatsService) CompletionFields(completionFields ...string) *IndicesStatsService
- func (s *IndicesStatsService) Do() (*IndicesStatsResponse, error)
- func (s *IndicesStatsService) DoC(ctx context.Context) (*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
- 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 JLHScoreSignificanceHeuristic
- type LaplaceSmoothingModel
- type 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
- type LinearMovAvgModel
- type Logger
- type MatchAllQuery
- type 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
- 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
- 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
- type MgetService
- func (b *MgetService) Add(items ...*MultiGetItem) *MgetService
- func (b *MgetService) Do() (*MgetResponse, error)
- func (b *MgetService) DoC(ctx context.Context) (*MgetResponse, error)
- func (b *MgetService) Preference(preference string) *MgetService
- func (s *MgetService) Pretty(pretty bool) *MgetService
- func (b *MgetService) Realtime(realtime bool) *MgetService
- func (b *MgetService) Refresh(refresh bool) *MgetService
- func (b *MgetService) Source() (interface{}, error)
- type MinAggregation