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
↓ 12 callers
Method
DateHistogram
DateHistogram returns date histogram aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-
search_aggs.go:539
↓ 12 callers
Method
Include
Include indicates to return specific parts of the _source. Wildcards are allowed here.
fetch_source_context.go:46
↓ 12 callers
Function
NewBulkDeleteRequest
NewBulkDeleteRequest returns a new BulkDeleteRequest.
bulk_delete_request.go:55
↓ 12 callers
Method
Param
Param adds a key/value pair to the parameters that this script will be executed with.
script.go:71
↓ 12 callers
Method
Precision
(precision string)
suggester_context_geo.go:101
↓ 11 callers
Method
After
After specifies a function to be executed when bulk requests have been committed to Elasticsearch. The After callback executes both when the commit wa
bulk_processor.go:90
↓ 11 callers
Method
IndexExists
IndexExists allows to check if an index exists.
client.go:1665
↓ 11 callers
Function
IsTimeout
IsTimeout returns true if the given error indicates that Elasticsearch returned HTTP status 408. The err parameter can be of type *elastic.Error, elas
errors.go:158
↓ 11 callers
Function
NewMatchQuery
NewMatchQuery creates and initializes a new MatchQuery.
search_queries_match.go:35
↓ 11 callers
Function
NewRequest
NewRequest is a http.Request and adds features such as encoding the body.
request.go:21
↓ 11 callers
Function
NewSearchRequest
NewSearchRequest creates a new search request.
search_request.go:35
↓ 11 callers
Method
OpType
OpType is an explicit operation type, i.e. "create" or "index" (default).
index.go:163
↓ 11 callers
Method
Repository
Repository is the repository name.
snapshot_get.go:86
↓ 10 callers
Method
ElasticsearchVersion
-- Helpers and shortcuts -- ElasticsearchVersion returns the version number of Elasticsearch running on the given URL.
client.go:2291
↓ 10 callers
Method
Fields
(fields ...*HighlighterField)
highlight.go:43
↓ 10 callers
Method
InnerHit
InnerHit adds an inner hit to return with the result.
search_source.go:362
↓ 10 callers
Method
IsRunning
IsRunning returns true if the background processes of the client are running, false otherwise.
client.go:774
↓ 10 callers
Method
MarkAsDead
MarkAsDead marks this connection as dead, increments the failures counter and stores the current time in dead since.
connection.go:63
↓ 10 callers
Method
Must
(queries ...Query)
search_queries_bool.go:35
↓ 10 callers
Function
NewRangeAggregation
()
search_aggs_bucket_range.go:35
↓ 10 callers
Function
NewSpanTermQuery
NewSpanTermQuery creates a new SpanTermQuery. When passing values, the first one is used to initialize the value.
search_queries_span_term.go:20
↓ 10 callers
Method
Ordered
Ordered, if true, indicates that matching terms must appear in their specified order. Defaults to false.
search_queries_interval_rules_match.go:35
↓ 10 callers
Method
Path
Path is used if sorting occurs on a field that is inside a nested object.
sort.go:247
↓ 10 callers
Method
SetHealthcheck
(enabled bool)
cluster-test/cluster-test.go:141
↓ 10 callers
Function
SetMaxRetries
SetMaxRetries sets the maximum number of retries before giving up when performing a HTTP request to Elasticsearch. Deprecated: Replace with a Retry i
client.go:635
↓ 10 callers
Method
Stats
Stats returns stats aggregation results. https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-stats-aggregation.htm
search_aggs.go:149
↓ 10 callers
Method
Timeout
(timeout string)
ping.go:108
↓ 9 callers
Method
Between
(from, to interface{})
search_aggs_bucket_range.go:119
↓ 9 callers
Method
Exclude
Exclude indicates to exclude specific parts of the _source. Wildcards are allowed here.
fetch_source_context.go:53
↓ 9 callers
Method
Exists
Exists checks if a document exists.
client.go:1627
↓ 9 callers
Method
Keyed
(keyed bool)
search_aggs_bucket_range.go:69
↓ 9 callers
Method
MovAvg
MovAvg returns moving average pipeline aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeli
search_aggs.go:737
↓ 9 callers
Function
NewBoolQuery
Creates a new bool query.
search_queries_bool.go:26
↓ 9 callers
Function
NewFunctionScoreQuery
NewFunctionScoreQuery creates and initializes a new function score query.
search_queries_fsq.go:27
↓ 9 callers
Function
NewHighlighterField
(name string)
highlight.go:310
↓ 9 callers
Method
Ping
Ping checks if a given node in a cluster exists and (optionally) returns some basic information about the Elasticsearch server, e.g. the Elasticsearch
client.go:2317
↓ 9 callers
Method
QueryName
QueryName sets the query name for the filter.
search_queries_ids.go:43
↓ 9 callers
Method
TaskId
TaskId indicates to returns the task(s) with specified id(s). Notice that the caller is responsible for using the correct format, i.e. node_id:task_nu
tasks_list.go:90
↓ 9 callers
Method
UseEasyJSON
UseEasyJSON is an experimental setting that enables serialization with github.com/mailru/easyjson, which should in faster serialization time and less
bulk_index_request.go:72
↓ 9 callers
Method
Username
Username sets the username to authenticate with the remote cluster.
reindex.go:582
↓ 8 callers
Method
Avg
Avg returns average aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-metrics-avg-aggregation.
search_aggs.go:73
↓ 8 callers
Method
BulkActions
BulkActions specifies when to flush based on the number of actions currently added. Defaults to 1000 and can be set to -1 to be disabled.
bulk_processor.go:110
↓ 8 callers
Method
BulkProcessor
BulkProcessor allows setting up a concurrent processor of bulk requests.
client.go:1560
↓ 8 callers
Method
BulkSize
BulkSize specifies when to flush based on the size (in bytes) of the actions currently added. Defaults to 5 MB and can be set to -1 to be disabled.
bulk_processor.go:117
↓ 8 callers
Method
Each
Each is a utility function to iterate over all hits. It saves you from checking for nil values. Notice that Each will ignore errors in serializing JSO
search.go:703
↓ 8 callers
Method
From
(from int)
inner_hit.go:49
↓ 8 callers
Method
Histogram
Histogram returns histogram aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-histogram
search_aggs.go:509
↓ 8 callers
Method
Len
()
setup_test.go:513
↓ 8 callers
Function
NewBulkCreateRequest
NewBulkCreateRequest returns a new BulkCreateRequest. The operation type is "create" by default.
bulk_create_request.go:61
↓ 8 callers
Function
NewDateRangeAggregation
()
search_aggs_bucket_date_range.go:37
↓ 8 callers
Function
NewFiltersAggregation
NewFiltersAggregation initializes a new FiltersAggregation.
search_aggs_bucket_filters.go:29
↓ 8 callers
Function
NewHighlight
()
highlight.go:36
↓ 8 callers
Function
NewMovAvgAggregation
NewMovAvgAggregation creates and initializes a new MovAvgAggregation. Deprecated: The MovAvgAggregation has been deprecated in 6.4.0. Use the more ge
search_aggs_pipeline_mov_avg.go:29
↓ 8 callers
Function
NewSuggesterCategoryQuery
NewSuggesterCategoryQuery creates a new SuggesterCategoryQuery.
suggester_context_category.go:69
↓ 8 callers
Method
ScoreMode
(scoreMode string)
rescorer.go:41
↓ 8 callers
Method
SetBasicAuth
SetBasicAuth wraps http.Request's SetBasicAuth.
request.go:32
↓ 8 callers
Function
SetHealthcheckTimeoutStartup
SetHealthcheckTimeoutStartup sets the timeout for the initial health check. The default timeout is 5 seconds (see DefaultHealthcheckTimeoutStartup). N
client.go:603
↓ 8 callers
Method
Stop
Stop stops the background processes that the client is running, i.e. sniffing the cluster periodically and running health checks on the nodes. If the
client.go:812
↓ 8 callers
Method
Workers
Workers is the number of concurrent workers allowed to be executed. Defaults to 1 and must be greater or equal to 1.
bulk_processor.go:103
↓ 8 callers
Function
findConn
(s string, slice ...*conn)
client_test.go:31
↓ 8 callers
Function
isCI
()
setup_test.go:268
↓ 7 callers
Method
BucketScript
BucketScript returns bucket script pipeline aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-p
search_aggs.go:797
↓ 7 callers
Method
ClusterHealth
-- Cluster APIs -- ClusterHealth retrieves the health of the cluster.
client.go:1985
↓ 7 callers
Method
CumulativeSum
CumulativeSum returns a cumulative sum pipeline aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregatio
search_aggs.go:782
↓ 7 callers
Method
Derivative
Derivative returns derivative pipeline aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-pipeli
search_aggs.go:767
↓ 7 callers
Method
Desc
Desc sets descending sort order.
sort.go:134
↓ 7 callers
Function
DialContext
DialContext will connect to Elasticsearch, just like NewClient does. The context is honoured in terms of e.g. cancellation.
client.go:319
↓ 7 callers
Method
FieldName
FieldName specifies the name of the field to be used for sorting.
sort.go:176
↓ 7 callers
Method
FilterWithName
FilterWithName adds a filter with a specific name. Notice that you can either use named or unnamed filters, but not both.
search_aggs_bucket_filters.go:55
↓ 7 callers
Method
Flush
Flush asks Elasticsearch to free memory from the index and flush data to disk.
client.go:1752
↓ 7 callers
Method
GapPolicy
GapPolicy defines what should be done when a gap in the series is discovered. Valid values include "insert_zeros" or "skip". Default is "insert_zeros"
search_aggs_pipeline_mov_fn.go:59
↓ 7 callers
Method
IsDead
IsDead returns true if this connection is marked as dead, i.e. a previous request to the URL has been unsuccessful.
connection.go:55
↓ 7 callers
Function
IsStatusCode
IsStatusCode returns true if the given error indicates that the Elasticsearch operation returned the specified HTTP status code. The err parameter can
errors.go:191
↓ 7 callers
Method
Lt
Lt indicates a less-than value for the to part. Use nil to indicate an unbounded to part.
search_queries_range.go:61
↓ 7 callers
Function
NewMultiTermsAggregation
NewMultiTermsAggregation initializes a new MultiTermsAggregation.
search_aggs_bucket_multi_terms.go:31
↓ 7 callers
Function
NewNestedQuery
NewNestedQuery creates and initializes a new NestedQuery.
search_queries_nested.go:25
↓ 7 callers
Function
NewPercentilesAggregation
()
search_aggs_metrics_percentiles.go:28
↓ 7 callers
Function
NewRankFeatureQuery
NewRankFeatureQuery creates and initializes a new RankFeatureQuery.
search_queries_rank_feature.go:23
↓ 7 callers
Function
NewRareTermsAggregation
()
search_aggs_bucket_rare_terms.go:25
↓ 7 callers
Method
Next
Next implements BackoffFunc for ExponentialBackoff.
backoff.go:87
↓ 7 callers
Method
Offset
Offset, if defined, computes the decay function only for a distance greater than the defined offset.
search_queries_fsq_score_funcs.go:174
↓ 7 callers
Function
Parse
Parse returns the Elasticsearch configuration by extracting it from the URL, its path, and its query string. Example: http://127.0.0.1:9200/store-blo
config/config.go:37
↓ 7 callers
Method
SerialDiff
SerialDiff returns serial differencing pipeline aggregation results. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregatio
search_aggs.go:812
↓ 7 callers
Method
SetBody
SetBody encodes the body in the request. You may pass a flag to compress the request via gzip.
request.go:38
↓ 7 callers
Method
TasksGetTask
TasksGetTask retrieves a task running on the cluster.
client.go:2026
↓ 7 callers
Method
UpdateByQuery
UpdateByQuery performs an update on a set of documents.
client.go:1550
↓ 7 callers
Method
Weight
(weight int)
suggest_field.go:36
↓ 7 callers
Method
XPackInfo
-- X-Pack General -- XPackInfo gets information on the xpack plugins enabled on the cluster
client.go:2105
↓ 7 callers
Function
benchmarkBulkAllocs
(b *testing.B, size, num int)
bulk_test.go:619
↓ 7 callers
Method
body
body returns the body part of the document request.
update.go:327
↓ 7 callers
Method
url
url returns the URL part of the document request.
update.go:256
↓ 6 callers
Method
AddBucketsPath
AddBucketsPath adds a bucket path to use for this pipeline aggregator.
search_aggs_pipeline_bucket_script.go:74
↓ 6 callers
Method
Aliases
Aliases returns aliases by index name(s).
client.go:1776
↓ 6 callers
Method
Analyzer
Analyzer specifies the analyzer to use for the query string.
count.go:135
↓ 6 callers
Method
CaseInsensitive
(caseInsensitive bool)
search_queries_term.go:31
↓ 6 callers
Method
Clear
Clear cancels the current scroll operation. If you don't do this manually, the scroll will be expired automatically by Elasticsearch. You can control
scroll.go:358
↓ 6 callers
Method
Delete
Delete a document.
client.go:1535
↓ 6 callers
Method
DoAsync
DoAsync executes the reindexing operation asynchronously by starting a new task. Callers need to use the Task Management API to watch the outcome of t
reindex.go:362
↓ 6 callers
Method
EstimatedSizeInBytes
EstimatedSizeInBytes returns the estimated size of all bulkable requests added via Add.
bulk.go:181
↓ 6 callers
Method
FetchSource
(fetchSource bool)
get.go:139
← previous
next →
101–200 of 5,566, ranked by callers