MCPcopy Create free account

hub / github.com/olivere/elastic / functions

Functions5,566 in github.com/olivere/elastic

↓ 1,723 callersMethodFatalf
(format string, args ...interface{})
setup_test.go:276
↓ 1,624 callersMethodFatal
(args ...interface{})
setup_test.go:275
↓ 1,574 callersMethodErrorf
(format string, args ...interface{})
setup_test.go:274
↓ 706 callersMethodIndex
-- Document APIs -- Index a document.
client.go:1515
↓ 693 callersMethodDo
(*http.Request)
client.go:111
↓ 541 callersMethodSource
Source returns the JSON-serializable query request.
query.go:12
↓ 310 callersMethodId
Id is the document ID.
get.go:110
↓ 258 callersMethodField
(name string)
highlight.go:48
↓ 194 callersMethodAdd
Add an item to the request.
mget.go:122
↓ 165 callersMethodPerformRequest
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 callersMethodBodyJson
BodyJson is the document as a serializable JSON interface.
index.go:213
↓ 148 callersFunctionExpand
(path string, expansions map[string]string)
uritemplates/utils.go:3
↓ 147 callersMethodString
String returns a string representation of the client status.
client.go:757
↓ 140 callersMethodQuery
Query specifies the query to pass. You can also pass a query string with Q.
count.go:209
↓ 124 callersFunctionsetupTestClientAndCreateIndex
(t logger, options ...ClientOptionFunc)
setup_test.go:358
↓ 117 callersMethodPretty
Pretty tells Elasticsearch whether to return a formatted JSON response.
get.go:56
↓ 100 callersMethodTotalHits
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 callersMethodDecode
(data []byte, v interface{})
decoder.go:17
↓ 88 callersMethodSearch
-- Search APIs -- Search is the entry point for searches.
client.go:1589
↓ 87 callersFunctionsetupTestClient
(t logger, options ...ClientOptionFunc)
setup_test.go:302
↓ 85 callersMethodbuildURL
buildURL builds the URL for the operation.
get.go:206
↓ 83 callersMethodRefresh
Refresh asks Elasticsearch to refresh one or more indices.
client.go:1746
↓ 76 callersFunctionNewMatchAllQuery
NewMatchAllQuery creates and initializes a new match all query.
search_queries_match_all.go:20
↓ 75 callersFunctionsetupTestClientAndCreateIndexAndAddDocs
remove unused warning in staticcheck
setup_test.go:415
↓ 74 callersFunctionNewTermQuery
NewTermQuery creates and initializes a new TermQuery.
search_queries_term.go:21
↓ 70 callersMethodAggregation
Aggregation adds an aggreation to perform as part of the search.
search.go:261
↓ 68 callersMethodSize
(size int)
inner_hit.go:54
↓ 63 callersMethodDoc
Doc allows for updating a partial document.
update.go:184
↓ 61 callersMethodGet
Get a document.
client.go:1520
↓ 60 callersMethodURL
URL returns the URL of this connection.
connection.go:47
↓ 56 callersFunctionNewClient
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 callersMethodPrintf
(format string, v ...interface{})
logger.go:9
↓ 56 callersMethodType
()
suggester_phrase.go:314
↓ 49 callersMethodError
(args ...interface{})
setup_test.go:273
↓ 46 callersMethodSubAggregation
(name string, subAggregation Aggregation)
search_aggs_metrics_sum.go:47
↓ 42 callersMethodName
()
rescorer.go:8
↓ 40 callersMethodValidate
TODO Search Template TODO Search Exists API Validate allows a user to validate a potentially expensive query without executing it.
client.go:1612
↓ 39 callersFunctionNewScript
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 callersMethodAddRange
(from, to interface{})
search_aggs_bucket_range.go:79
↓ 36 callersFunctionNewSearchSource
NewSearchSource initializes a new SearchSource.
search_source.go:51
↓ 34 callersMethodMeta
Meta sets the meta data to be included in the aggregation response.
search_aggs_metrics_sum.go:53
↓ 33 callersMethodBody
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 callersMethodBucketsPath
BucketsPath sets the paths to the buckets to use for this pipeline aggregator.
search_aggs_pipeline_mov_fn.go:89
↓ 32 callersMethodCount
Count documents.
client.go:1599
↓ 30 callersMethodNumberOfActions
NumberOfActions returns the number of bulkable requests that need to be sent to Elasticsearch on the next batch.
bulk.go:207
↓ 29 callersFunctionSetURL
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 callersMethodCalendarInterval
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 callersMethodFormat
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 callersFunctionNewBulkIndexRequest
NewBulkIndexRequest returns a new BulkIndexRequest. The operation type is "index" by default.
bulk_index_request.go:61
↓ 25 callersMethodBoost
Boost sets the boost for this query.
search_queries_ids.go:37
↓ 23 callersMethodCreateIndex
-- Indices APIs -- CreateIndex returns a service to create a new index.
client.go:1655
↓ 23 callersMethodMissing
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 callersFunctionNewDateHistogramAggregation
NewDateHistogramAggregation creates a new DateHistogramAggregation.
search_aggs_bucket_date_histogram.go:32
↓ 22 callersMethodDeleteIndex
DeleteIndex returns a service to delete an index.
client.go:1660
↓ 22 callersMethodRun
(n int)
cluster-test/cluster-test.go:149
↓ 22 callersMethodSetSniff
(enabled bool)
cluster-test/cluster-test.go:133
↓ 22 callersMethodgetBody
getBody returns the body part of the document request.
reindex.go:283
↓ 21 callersMethodBodyString
BodyString is the document encoded as a string.
index.go:219
↓ 21 callersMethodClose
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 callersMethodFilter
Filter sets a filter that nested objects should match with in order to be taken into account for sorting.
sort.go:232
↓ 20 callersFunctionNewSumAggregation
()
search_aggs_metrics_sum.go:21
↓ 20 callersFunctionSetHealthcheck
SetHealthcheck enables or disables healthchecks (enabled by default).
client.go:592
↓ 20 callersFunctionSetSniff
SetSniff enables or disables the sniffer (enabled by default).
client.go:532
↓ 20 callersMethodSort
(field string, ascending bool)
inner_hit.go:129
↓ 19 callersMethodFilters
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 callersMethodScript
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 callersFunctionIsNotFound
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 callersFunctionNewBulkUpdateRequest
NewBulkUpdateRequest returns a new BulkUpdateRequest.
bulk_update_request.go:75
↓ 18 callersMethodReindex
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 callersFunctionGeoPointFromLatLon
GeoPointFromLatLon initializes a new GeoPoint by latitude and longitude.
geo_point.go:34
↓ 17 callersFunctionNewAliasAddAction
NewAliasAddAction returns an action to add an alias.
indices_put_alias.go:34
↓ 17 callersFunctionNewFetchSourceContext
NewFetchSourceContext returns a new FetchSourceContext.
fetch_source_context.go:26
↓ 17 callersFunctionNewSignificantTermsAggregation
()
search_aggs_bucket_significant_terms.go:25
↓ 17 callersFunctionNewTermsAggregation
()
search_aggs_bucket_terms.go:33
↓ 17 callersMethodScroll
Scroll through documents. Use this to efficiently scroll through results while returning the results to a client.
client.go:1633
↓ 17 callersFunctionsetupTestClientForXpackSecurity
(t logger)
setup_test.go:486
↓ 16 callersMethodGt
Gt indicates a greater-than value for the from part. Use nil to indicate an unbounded from part.
search_queries_range.go:38
↓ 16 callersFunctionNewAvgAggregation
()
search_aggs_metrics_avg.go:23
↓ 16 callersFunctionNewMultiMatchQuery
MultiMatchQuery creates and initializes a new MultiMatchQuery.
search_queries_multi_match.go:39
↓ 16 callersFunctionNewReindexDestination
NewReindexDestination returns a new ReindexDestination.
reindex.go:645
↓ 16 callersMethodRouting
Routing is the specific routing value.
get.go:122
↓ 16 callersMethodTerms
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 callersMethoderrorf
errorf logs to the error log.
client.go:838
↓ 15 callersMethodBulk
Bulk is the entry point to mass insert/update/delete documents.
client.go:1555
↓ 15 callersFunctionNewInnerHit
NewInnerHit creates a new InnerHit.
inner_hit.go:25
↓ 15 callersFunctionNewRangeQuery
NewRangeQuery creates and initializes a new RangeQuery.
search_queries_range.go:25
↓ 15 callersFunctionNewReindexSource
NewReindexSource creates a new ReindexSource.
reindex.go:417
↓ 14 callersMethodColumns
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 callersMethodDestination
Destination specifies the destination of the reindexing process.
reindex.go:154
↓ 14 callersFunctionSetDecoder
SetDecoder sets the Decoder to use when decoding data from Elasticsearch. DefaultDecoder is used by default.
client.go:665
↓ 14 callersMethodSource
()
sort.go:14
↓ 13 callersFunctionIsConflict
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 callersFunctionNewIntervalQueryRuleMatch
NewIntervalQueryRuleMatch initializes and returns a new instance of IntervalQueryRuleMatch.
search_queries_interval_rules_match.go:22
↓ 13 callersFunctionSetHttpClient
SetHttpClient can be used to specify the http.Client to use when making HTTP requests to Elasticsearch.
client.go:480
↓ 13 callersMethodText
(text string)
suggester_term.go:44
↓ 13 callersMethodTieBreaker
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 callersMethodUpdate
Update a document.
client.go:1545
↓ 13 callersMethodnext
next returns the next available connection, or ErrNoClient.
client.go:1234
↓ 12 callersMethodAddScoreFunc
AddScoreFunc adds a score function that will execute the function on all documents.
search_queries_fsq.go:55
↓ 12 callersMethodAlias
Alias enables the caller to add and/or remove aliases.
client.go:1771
next →1–100 of 5,566, ranked by callers