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
↓ 1,723 callers
Method
Fatalf
(format string, args ...interface{})
setup_test.go:276
↓ 1,624 callers
Method
Fatal
(args ...interface{})
setup_test.go:275
↓ 1,574 callers
Method
Errorf
(format string, args ...interface{})
setup_test.go:274
↓ 706 callers
Method
Index
-- Document APIs -- Index a document.
client.go:1515
↓ 693 callers
Method
Do
(*http.Request)
client.go:111
↓ 541 callers
Method
Source
Source returns the JSON-serializable query request.
query.go:12
↓ 310 callers
Method
Id
Id is the document ID.
get.go:110
↓ 258 callers
Method
Field
(name string)
highlight.go:48
↓ 194 callers
Method
Add
Add an item to the request.
mget.go:122
↓ 165 callers
Method
PerformRequest
PerformRequest does a HTTP request to Elasticsearch. It returns a response (which might be nil) and an error on failure. Optionally, a list of HTTP e
client.go:1312
↓ 155 callers
Method
BodyJson
BodyJson is the document as a serializable JSON interface.
index.go:213
↓ 148 callers
Function
Expand
(path string, expansions map[string]string)
uritemplates/utils.go:3
↓ 147 callers
Method
String
String returns a string representation of the client status.
client.go:757
↓ 140 callers
Method
Query
Query specifies the query to pass. You can also pass a query string with Q.
count.go:209
↓ 124 callers
Function
setupTestClientAndCreateIndex
(t logger, options ...ClientOptionFunc)
setup_test.go:358
↓ 117 callers
Method
Pretty
Pretty tells Elasticsearch whether to return a formatted JSON response.
get.go:56
↓ 100 callers
Method
TotalHits
TotalHits is a convenience function to return the number of hits for a search result. The return value might not be accurate, unless track_total_hits
search.go:692
↓ 91 callers
Method
Decode
(data []byte, v interface{})
decoder.go:17
↓ 88 callers
Method
Search
-- Search APIs -- Search is the entry point for searches.
client.go:1589
↓ 87 callers
Function
setupTestClient
(t logger, options ...ClientOptionFunc)
setup_test.go:302
↓ 85 callers
Method
buildURL
buildURL builds the URL for the operation.
get.go:206
↓ 83 callers
Method
Refresh
Refresh asks Elasticsearch to refresh one or more indices.
client.go:1746
↓ 76 callers
Function
NewMatchAllQuery
NewMatchAllQuery creates and initializes a new match all query.
search_queries_match_all.go:20
↓ 75 callers
Function
setupTestClientAndCreateIndexAndAddDocs
remove unused warning in staticcheck
setup_test.go:415
↓ 74 callers
Function
NewTermQuery
NewTermQuery creates and initializes a new TermQuery.
search_queries_term.go:21
↓ 70 callers
Method
Aggregation
Aggregation adds an aggreation to perform as part of the search.
search.go:261
↓ 68 callers
Method
Size
(size int)
inner_hit.go:54
↓ 63 callers
Method
Doc
Doc allows for updating a partial document.
update.go:184
↓ 61 callers
Method
Get
Get a document.
client.go:1520
↓ 60 callers
Method
URL
URL returns the URL of this connection.
connection.go:47
↓ 56 callers
Function
NewClient
NewClient creates a new client to work with Elasticsearch. NewClient, by default, is meant to be long-lived and shared across your application. If yo
client.go:206
↓ 56 callers
Method
Printf
(format string, v ...interface{})
logger.go:9
↓ 56 callers
Method
Type
()
suggester_phrase.go:314
↓ 49 callers
Method
Error
(args ...interface{})
setup_test.go:273
↓ 46 callers
Method
SubAggregation
(name string, subAggregation Aggregation)
search_aggs_metrics_sum.go:47
↓ 42 callers
Method
Name
()
rescorer.go:8
↓ 40 callers
Method
Validate
TODO Search Template TODO Search Exists API Validate allows a user to validate a potentially expensive query without executing it.
client.go:1612
↓ 39 callers
Function
NewScript
NewScript creates and initializes a new Script. By default, it is of type "inline". Use NewScriptStored for a stored script (where type is "id").
script.go:28
↓ 38 callers
Method
AddRange
(from, to interface{})
search_aggs_bucket_range.go:79
↓ 36 callers
Function
NewSearchSource
NewSearchSource initializes a new SearchSource.
search_source.go:51
↓ 34 callers
Method
Meta
Meta sets the meta data to be included in the aggregation response.
search_aggs_metrics_sum.go:53
↓ 33 callers
Method
Body
Body sets the raw body to send to Elasticsearch. This can be e.g. a string, a map[string]interface{} or anything that can be serialized into JSON. Not
scroll.go:163
↓ 32 callers
Method
BucketsPath
BucketsPath sets the paths to the buckets to use for this pipeline aggregator.
search_aggs_pipeline_mov_fn.go:89
↓ 32 callers
Method
Count
Count documents.
client.go:1599
↓ 30 callers
Method
NumberOfActions
NumberOfActions returns the number of bulkable requests that need to be sent to Elasticsearch on the next batch.
bulk.go:207
↓ 29 callers
Function
SetURL
SetURL defines the URL endpoints of the Elasticsearch nodes. Notice that when sniffing is enabled, these URLs are used to initially sniff the cluster
client.go:504
↓ 27 callers
Method
CalendarInterval
CalendarInterval by which the aggregation gets processed. Allowed values are: "year" ("1y", "y"), "quarter" ("1q", "q"), "month" ("1M", "M"), "week"
search_aggs_bucket_date_histogram.go:103
↓ 27 callers
Method
Format
Format is used for date fields. In that case, we can set the format to be used instead of the mapper format.
search_queries_range.go:111
↓ 26 callers
Function
NewBulkIndexRequest
NewBulkIndexRequest returns a new BulkIndexRequest. The operation type is "index" by default.
bulk_index_request.go:61
↓ 25 callers
Method
Boost
Boost sets the boost for this query.
search_queries_ids.go:37
↓ 23 callers
Method
CreateIndex
-- Indices APIs -- CreateIndex returns a service to create a new index.
client.go:1655
↓ 23 callers
Method
Missing
Missing sets the value to be used when a field is missing in a document. You can also use "_last" or "_first" to sort missing last or first respective
sort.go:202
↓ 23 callers
Function
NewDateHistogramAggregation
NewDateHistogramAggregation creates a new DateHistogramAggregation.
search_aggs_bucket_date_histogram.go:32
↓ 22 callers
Method
DeleteIndex
DeleteIndex returns a service to delete an index.
client.go:1660
↓ 22 callers
Method
Run
(n int)
cluster-test/cluster-test.go:149
↓ 22 callers
Method
SetSniff
(enabled bool)
cluster-test/cluster-test.go:133
↓ 22 callers
Method
getBody
getBody returns the body part of the document request.
reindex.go:283
↓ 21 callers
Method
BodyString
BodyString is the document encoded as a string.
index.go:219
↓ 21 callers
Method
Close
Close stops the bulk processor previously started with Do. If it is already stopped, this is a no-op and nil is returned. By implementing Close, Bulk
bulk_processor.go:359
↓ 21 callers
Method
Filter
Filter sets a filter that nested objects should match with in order to be taken into account for sorting.
sort.go:232
↓ 20 callers
Function
NewSumAggregation
()
search_aggs_metrics_sum.go:21
↓ 20 callers
Function
SetHealthcheck
SetHealthcheck enables or disables healthchecks (enabled by default).
client.go:592
↓ 20 callers
Function
SetSniff
SetSniff enables or disables the sniffer (enabled by default).
client.go:532
↓ 20 callers
Method
Sort
(field string, ascending bool)
inner_hit.go:129
↓ 19 callers
Method
Filters
Filters returns filters results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-filters-aggregation.html
search_aggs.go:269
↓ 19 callers
Method
Script
Script is either the cache key of the script to be compiled/executed or the actual script source code for inline scripts. For indexed scripts this is
script.go:50
↓ 18 callers
Function
IsNotFound
IsNotFound returns true if the given error indicates that Elasticsearch returned HTTP status 404. The err parameter can be of type *elastic.Error, ela
errors.go:151
↓ 18 callers
Function
NewBulkUpdateRequest
NewBulkUpdateRequest returns a new BulkUpdateRequest.
bulk_update_request.go:75
↓ 18 callers
Method
Reindex
Reindex copies data from a source index into a destination index. See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html f
client.go:1568
↓ 17 callers
Function
GeoPointFromLatLon
GeoPointFromLatLon initializes a new GeoPoint by latitude and longitude.
geo_point.go:34
↓ 17 callers
Function
NewAliasAddAction
NewAliasAddAction returns an action to add an alias.
indices_put_alias.go:34
↓ 17 callers
Function
NewFetchSourceContext
NewFetchSourceContext returns a new FetchSourceContext.
fetch_source_context.go:26
↓ 17 callers
Function
NewSignificantTermsAggregation
()
search_aggs_bucket_significant_terms.go:25
↓ 17 callers
Function
NewTermsAggregation
()
search_aggs_bucket_terms.go:33
↓ 17 callers
Method
Scroll
Scroll through documents. Use this to efficiently scroll through results while returning the results to a client.
client.go:1633
↓ 17 callers
Function
setupTestClientForXpackSecurity
(t logger)
setup_test.go:486
↓ 16 callers
Method
Gt
Gt indicates a greater-than value for the from part. Use nil to indicate an unbounded from part.
search_queries_range.go:38
↓ 16 callers
Function
NewAvgAggregation
()
search_aggs_metrics_avg.go:23
↓ 16 callers
Function
NewMultiMatchQuery
MultiMatchQuery creates and initializes a new MultiMatchQuery.
search_queries_multi_match.go:39
↓ 16 callers
Function
NewReindexDestination
NewReindexDestination returns a new ReindexDestination.
reindex.go:645
↓ 16 callers
Method
Routing
Routing is the specific routing value.
get.go:122
↓ 16 callers
Method
Terms
Terms returns terms aggregation results. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.0/search-aggregations-bucket-terms-aggregation
search_aggs.go:359
↓ 16 callers
Method
errorf
errorf logs to the error log.
client.go:838
↓ 15 callers
Method
Bulk
Bulk is the entry point to mass insert/update/delete documents.
client.go:1555
↓ 15 callers
Function
NewInnerHit
NewInnerHit creates a new InnerHit.
inner_hit.go:25
↓ 15 callers
Function
NewRangeQuery
NewRangeQuery creates and initializes a new RangeQuery.
search_queries_range.go:25
↓ 15 callers
Function
NewReindexSource
NewReindexSource creates a new ReindexSource.
reindex.go:417
↓ 14 callers
Method
Columns
Columns to return in the response. To get a list of all possible columns to return, run the following command in your terminal: Example: curl 'http:/
cat_count.go:114
↓ 14 callers
Method
Destination
Destination specifies the destination of the reindexing process.
reindex.go:154
↓ 14 callers
Function
SetDecoder
SetDecoder sets the Decoder to use when decoding data from Elasticsearch. DefaultDecoder is used by default.
client.go:665
↓ 14 callers
Method
Source
()
sort.go:14
↓ 13 callers
Function
IsConflict
IsConflict returns true if the given error indicates that the Elasticsearch operation resulted in a version conflict. This can occur in operations lik
errors.go:167
↓ 13 callers
Function
NewIntervalQueryRuleMatch
NewIntervalQueryRuleMatch initializes and returns a new instance of IntervalQueryRuleMatch.
search_queries_interval_rules_match.go:22
↓ 13 callers
Function
SetHttpClient
SetHttpClient can be used to specify the http.Client to use when making HTTP requests to Elasticsearch.
client.go:480
↓ 13 callers
Method
Text
(text string)
suggester_term.go:44
↓ 13 callers
Method
TieBreaker
TieBreaker is the factor by which the score of each non-maximum disjunct for a document is multiplied with and added into the final score. If non-zer
search_queries_dis_max.go:49
↓ 13 callers
Method
Update
Update a document.
client.go:1545
↓ 13 callers
Method
next
next returns the next available connection, or ErrNoClient.
client.go:1234
↓ 12 callers
Method
AddScoreFunc
AddScoreFunc adds a score function that will execute the function on all documents.
search_queries_fsq.go:55
↓ 12 callers
Method
Alias
Alias enables the caller to add and/or remove aliases.
client.go:1771
next →
1–100 of 5,566, ranked by callers