Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/olivere/elastic
/ functions
Functions
5,566 in github.com/olivere/elastic
⨍
Functions
5,566
◇
Types & classes
868
↓ 6 callers
Method
Header
Header adds a header to the request.
get.go:81
↓ 6 callers
Method
Human
Human specifies whether human readable values should be returned in the JSON response, e.g. "7.5mb".
get.go:63
↓ 6 callers
Method
IfPrimaryTerm
IfPrimaryTerm indicates to only perform the index operation if the last operation that has changed the document has the specified primary term.
index.go:207
↓ 6 callers
Method
IfSeqNo
IfSeqNo indicates to only perform the index operation if the last operation that has changed the document has the specified sequence number.
index.go:200
↓ 6 callers
Method
IgnoreUnmapped
IgnoreUnmapped indicates whether the unmapped field should be treated as a missing value. Setting it to true is equivalent to specifying an unmapped_t
sort.go:386
↓ 6 callers
Method
Lang
Lang sets the language of the script. The default scripting language is Painless ("painless"). See https://www.elastic.co/guide/en/elasticsearch/refer
script.go:65
↓ 6 callers
Method
Metric
Metric is a list of metrics you wish returned. Leave empty to return all. Valid metrics are: settings, os, process, jvm, thread_pool, network, transpo
nodes_info.go:93
↓ 6 callers
Function
NewAliasRemoveAction
NewAliasRemoveAction returns an action to remove an alias.
indices_put_alias.go:150
↓ 6 callers
Function
NewCompletionSuggester
Creates a new completion suggester.
suggester_completion.go:31
↓ 6 callers
Function
NewCompositeAggregationDateHistogramValuesSource
NewCompositeAggregationDateHistogramValuesSource creates and initializes a new CompositeAggregationDateHistogramValuesSource.
search_aggs_bucket_composite.go:422
↓ 6 callers
Function
NewFilterAggregation
()
search_aggs_bucket_filter.go:18
↓ 6 callers
Function
NewGeoBoundingBoxQuery
NewGeoBoundingBoxQuery creates and initializes a new GeoBoundingBoxQuery.
search_queries_geo_bounding_box.go:26
↓ 6 callers
Function
NewGeoHashGridAggregation
()
search_aggs_bucket_geohash_grid.go:12
↓ 6 callers
Function
NewMoreLikeThisQueryItem
NewMoreLikeThisQueryItem creates and initializes a MoreLikeThisQueryItem.
search_queries_more_like_this.go:304
↓ 6 callers
Function
NewPercolatorQuery
NewPercolatorQuery creates and initializes a new Percolator query.
search_queries_percolator.go:27
↓ 6 callers
Function
NewScriptInline
NewScriptInline creates and initializes a new inline script, i.e. code.
script.go:37
↓ 6 callers
Function
NewSimpleClient
NewSimpleClient creates a new short-lived Client that can be used in use cases where you need e.g. one client per request. While NewClient by default
client.go:234
↓ 6 callers
Function
NewTopMetricsAggregation
()
search_aggs_metrics_top_metrics.go:20
↓ 6 callers
Function
NewWeightFactorFunction
NewWeightFactorFunction initializes and returns a new WeightFactorFunction.
search_queries_fsq_score_funcs.go:487
↓ 6 callers
Method
Point
Point specifies a point to create the range distance aggregations from.
sort.go:357
↓ 6 callers
Method
RetryOnConflict
RetryOnConflict specifies how many times the operation should be retried when a conflict occurs (default: 0).
update.go:141
↓ 6 callers
Method
ReturnSource
ReturnSource specifies whether Elasticsearch should return the source after the update. In the request, this responds to the `_source` field. It is fa
bulk_update_request.go:221
↓ 6 callers
Method
ScriptedMetric
ScriptedMetric returns scripted metric aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.2/search-aggregations-metric
search_aggs.go:845
↓ 6 callers
Method
Seed
Seed sets the seed based on which the random number will be generated. Using the same seed is guaranteed to generate the same random number for a spec
search_queries_fsq_score_funcs.go:552
↓ 6 callers
Function
SetSnifferTimeoutStartup
SetSnifferTimeoutStartup sets the timeout for the sniffer that is used when creating a new client. The default is 5 seconds. Notice that the timeout b
client.go:543
↓ 6 callers
Method
ShardSize
(shardSize int)
suggester_term.go:64
↓ 6 callers
Method
SignificanceHeuristic
(heuristic SignificanceHeuristic)
search_aggs_bucket_significant_text.go:92
↓ 6 callers
Method
Source
Source returns JSON for the function score query.
search_queries_geo_bounding_box.go:136
↓ 6 callers
Method
TopHits
TopHits returns top-hits aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-top-hits-ag
search_aggs.go:224
↓ 6 callers
Function
escape
(s string, allowReserved bool)
uritemplates/uritemplates.go:48
↓ 6 callers
Method
sniff
sniff uses the Node Info API to return the list of nodes in the cluster. It uses the list of URLs passed on startup plus the list of URLs found by the
client.go:905
↓ 5 callers
Method
Action
Action accepts one or more AliasAction instances which can be of type AliasAddAction or AliasRemoveAction.
indices_put_alias.go:327
↓ 5 callers
Method
BoostMode
BoostMode defines how the combined result of score functions will influence the final score together with the sub query score.
search_queries_fsq.go:70
↓ 5 callers
Method
DocvalueFields
(docvalueFields ...string)
inner_hit.go:99
↓ 5 callers
Function
ErrorReason
ErrorReason returns the reason of an error that Elasticsearch reported, if err is of kind Error and has ErrorDetails with a Reason. Any other value of
errors.go:115
↓ 5 callers
Method
FetchSourceContext
(fetchSourceContext *FetchSourceContext)
get.go:148
↓ 5 callers
Method
HasIndices
HasIndices returns true if there are indices used, false otherwise.
search_request.go:65
↓ 5 callers
Method
IndexAnalyze
IndexAnalyze performs the analysis process on a text and returns the token breakdown of the text.
client.go:1735
↓ 5 callers
Method
Interval
Interval for this builder, must be greater than 0.
search_aggs_bucket_histogram.go:62
↓ 5 callers
Function
IsContextErr
IsContextErr returns true if the error is from a context that was canceled or deadline exceeded
errors.go:127
↓ 5 callers
Method
JobId
JobId is id of the rollup to retrieve.
xpack_rollup_get.go:80
↓ 5 callers
Method
MarkAsHealthy
MarkAsHealthy marks this connection as healthy, i.e. a request has been successfully performed with it.
connection.go:84
↓ 5 callers
Method
MasterTimeout
MasterTimeout is the explicit operation timeout for connection to master node.
cat_count.go:100
↓ 5 callers
Method
Max
Max returns max aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-max-aggregation.html
search_aggs.go:43
↓ 5 callers
Method
MaxBoost
MaxBoost is the maximum boost that will be applied by function score.
search_queries_fsq.go:76
↓ 5 callers
Method
MaxGaps
MaxGaps specifies the maximum number of positions between the matching terms. Terms further apart than this are considered matches. Defaults to -1.
search_queries_interval_rules_match.go:28
↓ 5 callers
Method
Model
Model is used to define what type of moving average you want to use in the series.
search_aggs_pipeline_mov_avg.go:62
↓ 5 callers
Function
NewCardinalityAggregation
()
search_aggs_metrics_cardinality.go:23
↓ 5 callers
Function
NewCollapseBuilder
NewCollapseBuilder creates a new CollapseBuilder.
search_collapse_builder.go:17
↓ 5 callers
Function
NewCompositeAggregationHistogramValuesSource
NewCompositeAggregationHistogramValuesSource creates and initializes a new CompositeAggregationHistogramValuesSource.
search_aggs_bucket_composite.go:282
↓ 5 callers
Function
NewCompositeAggregationTermsValuesSource
NewCompositeAggregationTermsValuesSource creates and initializes a new CompositeAggregationTermsValuesSource.
search_aggs_bucket_composite.go:156
↓ 5 callers
Function
NewFieldSort
NewFieldSort creates a new FieldSort.
sort.go:168
↓ 5 callers
Function
NewIndicesRolloverService
NewIndicesRolloverService creates a new IndicesRolloverService.
indices_rollover.go:46
↓ 5 callers
Function
NewIntervalQuery
NewIntervalQuery creates and initializes a new IntervalQuery.
search_queries_interval.go:32
↓ 5 callers
Function
NewIntervalQueryFilter
NewIntervalQueryFilter initializes and creates a new IntervalQueryFilter.
search_queries_interval_filter.go:26
↓ 5 callers
Function
NewIntervalQueryRuleAllOf
NewIntervalQueryRuleAllOf initializes and returns a new instance of IntervalQueryRuleAllOf.
search_queries_interval_rules_all_of.go:20
↓ 5 callers
Function
NewIntervalQueryRuleAnyOf
NewIntervalQueryRuleAnyOf initializes and returns a new instance of IntervalQueryRuleAnyOf.
search_queries_interval_rules_any_of.go:18
↓ 5 callers
Function
NewMedianAbsoluteDeviationAggregation
()
search_aggs_metrics_median_absolute_deviation.go:24
↓ 5 callers
Function
NewMinAggregation
()
search_aggs_metrics_min.go:22
↓ 5 callers
Function
NewPercentileRanksAggregation
()
search_aggs_metrics_percentile_ranks.go:21
↓ 5 callers
Function
NewPhraseSuggester
NewPhraseSuggester creates a new PhraseSuggester.
suggester_phrase.go:39
↓ 5 callers
Function
NewTermsQuery
NewTermsQuery creates and initializes a new TermsQuery.
search_queries_terms.go:21
↓ 5 callers
Method
NodeID
NodeID returns the ID of the node of this connection.
connection.go:40
↓ 5 callers
Method
NotContaining
NotContaining specifies the query to be used to return intervals that do NOT contain an interval from the filter rule.
search_queries_interval_filter.go:74
↓ 5 callers
Method
Password
Password sets the password to authenticate with the remote cluster.
reindex.go:588
↓ 5 callers
Method
Prefix
(prefix string)
suggester_context.go:39
↓ 5 callers
Method
Reset
Reset cleans up the request queue
bulk.go:102
↓ 5 callers
Method
ScoreFunction
ScoreFunction specifies the score function for the RankFeatureQuery.
search_queries_rank_feature.go:36
↓ 5 callers
Method
Snapshot
Snapshot is the list of snapshot names. If not set, defaults to all snapshots.
snapshot_get.go:92
↓ 5 callers
Method
Source
()
suggester_phrase.go:315
↓ 5 callers
Method
Start
Start starts the background processes like sniffing the cluster and periodic health checks. You don't need to run Start when creating a client with Ne
client.go:785
↓ 5 callers
Method
Suggester
Suggester adds a suggester to the search.
search.go:255
↓ 5 callers
Method
TasksCancel
TasksCancel cancels tasks running on the specified nodes.
client.go:2016
↓ 5 callers
Method
TimeZone
TimeZone is used for date fields. In that case, we can adjust the from/to fields using a timezone.
search_queries_range.go:104
↓ 5 callers
Method
Upsert
Upsert can be used to index the document when it doesn't exist yet. Use this e.g. to initialize a document with a default value.
update.go:191
↓ 5 callers
Method
WaitForCompletion
WaitForCompletion indicates whether Elasticsearch should block until the reindex is complete.
reindex.go:133
↓ 5 callers
Method
Window
Window sets the window size for this aggregation.
search_aggs_pipeline_mov_fn.go:77
↓ 5 callers
Method
XPackRollupGet
XPackRollupGet gets a rollup job.
client.go:2216
↓ 5 callers
Function
checkResponse
checkResponse will return an error if the request/response indicates an error returned from Elasticsearch. HTTP status codes between in the range [20
errors.go:28
↓ 5 callers
Method
healthcheck
healthcheck does a health check on all nodes in the cluster. Depending on the node state, it marks connections as dead, sets them alive etc. If health
client.go:1097
↓ 4 callers
Method
AddGeoPoint
AddGeoPoint adds a GeoPoint.
search_queries_geo_polygon.go:32
↓ 4 callers
Method
ByAction
ByAction returns all bulk request results of a certain action, e.g. "index" or "delete".
bulk.go:408
↓ 4 callers
Method
ClusterState
ClusterState retrieves the state of the cluster.
client.go:1996
↓ 4 callers
Method
Composite
Composite returns composite bucket aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-co
search_aggs.go:829
↓ 4 callers
Method
DefaultValues
(values ...string)
suggester_context_category.go:25
↓ 4 callers
Method
DeleteByQuery
DeleteByQuery deletes documents as found by a query.
client.go:1540
↓ 4 callers
Method
Distance
(distance string)
search_queries_geo_distance.go:54
↓ 4 callers
Method
Document
(docs ...interface{})
search_queries_percolator.go:49
↓ 4 callers
Method
Explain
Explain computes a score explanation for a query and a specific document.
client.go:1604
↓ 4 callers
Method
FlushInterval
FlushInterval specifies when to flush at the end of the given interval. This is disabled by default. If you want the bulk processor to operate complet
bulk_processor.go:126
↓ 4 callers
Method
Format
(format string)
search_aggs_bucket_date_range.go:80
↓ 4 callers
Method
Highlight
(highlight *Highlight)
inner_hit.go:144
↓ 4 callers
Method
Ids
Ids adds ids to the filter.
search_queries_ids.go:31
↓ 4 callers
Method
IndexGetSettings
IndexGetSettings retrieves settings of all, one or more indices.
client.go:1719
↓ 4 callers
Method
IndexNames
IndexNames returns the names of all indices in the cluster.
client.go:2300
↓ 4 callers
Method
IndexPutSettings
IndexPutSettings sets settings for all, one or more indices.
client.go:1724
↓ 4 callers
Method
KeepAlive
KeepAlive sets the maximum time after which the cursor will expire. It is "5m" by default.
scroll.go:141
↓ 4 callers
Method
MarshalEasyJSON
MarshalEasyJSON supports easyjson.Marshaler interface
bulk_update_request_easyjson.go:475
↓ 4 callers
Method
MarshalJSON
MarshalJSON supports json.Marshaler interface
bulk_update_request_easyjson.go:468
↓ 4 callers
Method
MultiTerms
MultiTerms returns multi terms aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.13/search-aggregations-bucket-multi
search_aggs.go:374
← previous
next →
201–300 of 5,566, ranked by callers