MCPcopy
hub / github.com/olivere/elastic / Query

Interface Query

query.go:10–13  ·  view source on GitHub ↗

Query represents the generic query interface. A query's sole purpose is to return the source of the query as a JSON-serializable object. Returning map[string]interface{} is the norm for queries.

Source from the content-addressed store, hash-verified

8// is to return the source of the query as a JSON-serializable object.
9// Returning map[string]interface{} is the norm for queries.
10type Query interface {
11 // Source returns the JSON-serializable query request.
12 Source() (interface{}, error)
13}

Callers 8

TestMultiSearchFunction · 0.65
SourceMethod · 0.65
SourceMethod · 0.65
SourceMethod · 0.65
SourceMethod · 0.65

Implementers 15

MatchPhrasePrefixQuerysearch_queries_match_phrase_prefix.go
MatrixStatsAggregationsearch_aggs_matrix_stats.go
MoreLikeThisQuerysearch_queries_more_like_this.go
MoreLikeThisQueryItemsearch_queries_more_like_this.go
CardinalityAggregationsearch_aggs_metrics_cardinality.go
IdsQuerysearch_queries_ids.go
AvgBucketAggregationsearch_aggs_pipeline_avg_bucket.go
TypeQuerysearch_queries_type.go
SpanFirstQuerysearch_queries_span_first.go
CumulativeSumAggregationsearch_aggs_pipeline_cumulative_sum.go
SumAggregationsearch_aggs_metrics_sum.go
BoolQuerysearch_queries_bool.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…