Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed May 7, 2024
1 parent 0eca6e6 commit 6a3ccc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quesma/model/query_types_list.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package model

// AggregationQueryTypes is a list of all aggregation types in Elasticsearch.
// More details: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html
var AggregationQueryTypes = []string{
// metrics:
"avg",
Expand Down Expand Up @@ -90,6 +91,7 @@ var AggregationQueryTypes = []string{
}

// QueryDSLTypes is a list of all Query DSL types in Elasticsearch.
// More details: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
var QueryDSLTypes = []string{
// Compound queries:
"bool",
Expand Down Expand Up @@ -159,4 +161,6 @@ var QueryDSLTypes = []string{
"text_expansion",
}

// AllQueryTypes is a list of all query types in Elasticsearch.
// So far used for listing types of queries we received, but don't support.
var AllQueryTypes = append(AggregationQueryTypes, QueryDSLTypes...)

0 comments on commit 6a3ccc2

Please sign in to comment.