MCPcopy Create free account

hub / github.com/olivere/elastic / functions

Functions5,566 in github.com/olivere/elastic

↓ 12 callersMethodDateHistogram
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 callersMethodInclude
Include indicates to return specific parts of the _source. Wildcards are allowed here.
fetch_source_context.go:46
↓ 12 callersFunctionNewBulkDeleteRequest
NewBulkDeleteRequest returns a new BulkDeleteRequest.
bulk_delete_request.go:55
↓ 12 callersMethodParam
Param adds a key/value pair to the parameters that this script will be executed with.
script.go:71
↓ 12 callersMethodPrecision
(precision string)
suggester_context_geo.go:101
↓ 11 callersMethodAfter
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 callersMethodIndexExists
IndexExists allows to check if an index exists.
client.go:1665
↓ 11 callersFunctionIsTimeout
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 callersFunctionNewMatchQuery
NewMatchQuery creates and initializes a new MatchQuery.
search_queries_match.go:35
↓ 11 callersFunctionNewRequest
NewRequest is a http.Request and adds features such as encoding the body.
request.go:21
↓ 11 callersFunctionNewSearchRequest
NewSearchRequest creates a new search request.
search_request.go:35
↓ 11 callersMethodOpType
OpType is an explicit operation type, i.e. "create" or "index" (default).
index.go:163
↓ 11 callersMethodRepository
Repository is the repository name.
snapshot_get.go:86
↓ 10 callersMethodElasticsearchVersion
-- Helpers and shortcuts -- ElasticsearchVersion returns the version number of Elasticsearch running on the given URL.
client.go:2291
↓ 10 callersMethodFields
(fields ...*HighlighterField)
highlight.go:43
↓ 10 callersMethodInnerHit
InnerHit adds an inner hit to return with the result.
search_source.go:362
↓ 10 callersMethodIsRunning
IsRunning returns true if the background processes of the client are running, false otherwise.
client.go:774
↓ 10 callersMethodMarkAsDead
MarkAsDead marks this connection as dead, increments the failures counter and stores the current time in dead since.
connection.go:63
↓ 10 callersMethodMust
(queries ...Query)
search_queries_bool.go:35
↓ 10 callersFunctionNewRangeAggregation
()
search_aggs_bucket_range.go:35
↓ 10 callersFunctionNewSpanTermQuery
NewSpanTermQuery creates a new SpanTermQuery. When passing values, the first one is used to initialize the value.
search_queries_span_term.go:20
↓ 10 callersMethodOrdered
Ordered, if true, indicates that matching terms must appear in their specified order. Defaults to false.
search_queries_interval_rules_match.go:35
↓ 10 callersMethodPath
Path is used if sorting occurs on a field that is inside a nested object.
sort.go:247
↓ 10 callersMethodSetHealthcheck
(enabled bool)
cluster-test/cluster-test.go:141
↓ 10 callersFunctionSetMaxRetries
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 callersMethodStats
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 callersMethodTimeout
(timeout string)
ping.go:108
↓ 9 callersMethodBetween
(from, to interface{})
search_aggs_bucket_range.go:119
↓ 9 callersMethodExclude
Exclude indicates to exclude specific parts of the _source. Wildcards are allowed here.
fetch_source_context.go:53
↓ 9 callersMethodExists
Exists checks if a document exists.
client.go:1627
↓ 9 callersMethodKeyed
(keyed bool)
search_aggs_bucket_range.go:69
↓ 9 callersMethodMovAvg
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 callersFunctionNewBoolQuery
Creates a new bool query.
search_queries_bool.go:26
↓ 9 callersFunctionNewFunctionScoreQuery
NewFunctionScoreQuery creates and initializes a new function score query.
search_queries_fsq.go:27
↓ 9 callersFunctionNewHighlighterField
(name string)
highlight.go:310
↓ 9 callersMethodPing
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 callersMethodQueryName
QueryName sets the query name for the filter.
search_queries_ids.go:43
↓ 9 callersMethodTaskId
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 callersMethodUseEasyJSON
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 callersMethodUsername
Username sets the username to authenticate with the remote cluster.
reindex.go:582
↓ 8 callersMethodAvg
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 callersMethodBulkActions
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 callersMethodBulkProcessor
BulkProcessor allows setting up a concurrent processor of bulk requests.
client.go:1560
↓ 8 callersMethodBulkSize
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 callersMethodEach
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 callersMethodFrom
(from int)
inner_hit.go:49
↓ 8 callersMethodHistogram
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 callersMethodLen
()
setup_test.go:513
↓ 8 callersFunctionNewBulkCreateRequest
NewBulkCreateRequest returns a new BulkCreateRequest. The operation type is "create" by default.
bulk_create_request.go:61
↓ 8 callersFunctionNewDateRangeAggregation
()
search_aggs_bucket_date_range.go:37
↓ 8 callersFunctionNewFiltersAggregation
NewFiltersAggregation initializes a new FiltersAggregation.
search_aggs_bucket_filters.go:29
↓ 8 callersFunctionNewHighlight
()
highlight.go:36
↓ 8 callersFunctionNewMovAvgAggregation
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 callersFunctionNewSuggesterCategoryQuery
NewSuggesterCategoryQuery creates a new SuggesterCategoryQuery.
suggester_context_category.go:69
↓ 8 callersMethodScoreMode
(scoreMode string)
rescorer.go:41
↓ 8 callersMethodSetBasicAuth
SetBasicAuth wraps http.Request's SetBasicAuth.
request.go:32
↓ 8 callersFunctionSetHealthcheckTimeoutStartup
SetHealthcheckTimeoutStartup sets the timeout for the initial health check. The default timeout is 5 seconds (see DefaultHealthcheckTimeoutStartup). N
client.go:603
↓ 8 callersMethodStop
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 callersMethodWorkers
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 callersFunctionfindConn
(s string, slice ...*conn)
client_test.go:31
↓ 8 callersFunctionisCI
()
setup_test.go:268
↓ 7 callersMethodBucketScript
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 callersMethodClusterHealth
-- Cluster APIs -- ClusterHealth retrieves the health of the cluster.
client.go:1985
↓ 7 callersMethodCumulativeSum
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 callersMethodDerivative
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 callersMethodDesc
Desc sets descending sort order.
sort.go:134
↓ 7 callersFunctionDialContext
DialContext will connect to Elasticsearch, just like NewClient does. The context is honoured in terms of e.g. cancellation.
client.go:319
↓ 7 callersMethodFieldName
FieldName specifies the name of the field to be used for sorting.
sort.go:176
↓ 7 callersMethodFilterWithName
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 callersMethodFlush
Flush asks Elasticsearch to free memory from the index and flush data to disk.
client.go:1752
↓ 7 callersMethodGapPolicy
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 callersMethodIsDead
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 callersFunctionIsStatusCode
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 callersMethodLt
Lt indicates a less-than value for the to part. Use nil to indicate an unbounded to part.
search_queries_range.go:61
↓ 7 callersFunctionNewMultiTermsAggregation
NewMultiTermsAggregation initializes a new MultiTermsAggregation.
search_aggs_bucket_multi_terms.go:31
↓ 7 callersFunctionNewNestedQuery
NewNestedQuery creates and initializes a new NestedQuery.
search_queries_nested.go:25
↓ 7 callersFunctionNewPercentilesAggregation
()
search_aggs_metrics_percentiles.go:28
↓ 7 callersFunctionNewRankFeatureQuery
NewRankFeatureQuery creates and initializes a new RankFeatureQuery.
search_queries_rank_feature.go:23
↓ 7 callersFunctionNewRareTermsAggregation
()
search_aggs_bucket_rare_terms.go:25
↓ 7 callersMethodNext
Next implements BackoffFunc for ExponentialBackoff.
backoff.go:87
↓ 7 callersMethodOffset
Offset, if defined, computes the decay function only for a distance greater than the defined offset.
search_queries_fsq_score_funcs.go:174
↓ 7 callersFunctionParse
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 callersMethodSerialDiff
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 callersMethodSetBody
SetBody encodes the body in the request. You may pass a flag to compress the request via gzip.
request.go:38
↓ 7 callersMethodTasksGetTask
TasksGetTask retrieves a task running on the cluster.
client.go:2026
↓ 7 callersMethodUpdateByQuery
UpdateByQuery performs an update on a set of documents.
client.go:1550
↓ 7 callersMethodWeight
(weight int)
suggest_field.go:36
↓ 7 callersMethodXPackInfo
-- X-Pack General -- XPackInfo gets information on the xpack plugins enabled on the cluster
client.go:2105
↓ 7 callersFunctionbenchmarkBulkAllocs
(b *testing.B, size, num int)
bulk_test.go:619
↓ 7 callersMethodbody
body returns the body part of the document request.
update.go:327
↓ 7 callersMethodurl
url returns the URL part of the document request.
update.go:256
↓ 6 callersMethodAddBucketsPath
AddBucketsPath adds a bucket path to use for this pipeline aggregator.
search_aggs_pipeline_bucket_script.go:74
↓ 6 callersMethodAliases
Aliases returns aliases by index name(s).
client.go:1776
↓ 6 callersMethodAnalyzer
Analyzer specifies the analyzer to use for the query string.
count.go:135
↓ 6 callersMethodCaseInsensitive
(caseInsensitive bool)
search_queries_term.go:31
↓ 6 callersMethodClear
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 callersMethodDelete
Delete a document.
client.go:1535
↓ 6 callersMethodDoAsync
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 callersMethodEstimatedSizeInBytes
EstimatedSizeInBytes returns the estimated size of all bulkable requests added via Add.
bulk.go:181
↓ 6 callersMethodFetchSource
(fetchSource bool)
get.go:139
← previousnext →101–200 of 5,566, ranked by callers