-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed as not planned
Closed as not planned
Copy link
Labels
:Analytics/SQLSQL queryingSQL querying>featureTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
The idea originally surfaced in this discuss thread. The solution fit for SQL would include the terms aggregation inside a composite one to allow for pagination:
GET flights/_search
{
"size": 0,
"_source": {
"excludes": []
},
"aggs": {
"whatever": {
"composite": {
"sources": [
{
"2": {
"terms": {
"script": {
"source": "if (doc['DestWeather.keyword'] == doc['OriginWeather.keyword']) return doc['DestWeather.keyword']; else return 'other';",
"lang": "painless"
}
}
}
}
]
}
}
},
"query": {
"match_all": {}
}
}
odannyc, sw-jung, StingyJack and naXa777
Metadata
Metadata
Assignees
Labels
:Analytics/SQLSQL queryingSQL querying>featureTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)