Skip to content

Commit

Permalink
fix(groupBy): aggregation by response-time doesnt work
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGeraud committed Dec 19, 2019
1 parent f23b5d0 commit ec8f42a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -56,13 +56,13 @@
"size": 1000
<#if query.sort()?has_content>
,"order": {
"${query.sort().getField()}":"${query.sort().getOrder()?lower_case}"
"${query.sort().getType().name()?lower_case}_${query.sort().getField()}":"${query.sort().getOrder()?lower_case}"
}
},
"aggregations":{
<#switch query.sort().getType().name()>
<#case "AVG">
"${query.sort().getField()}":{
"avg_${query.sort().getField()}":{
"avg":{
"field":"${query.sort().getField()}"
}
Expand Down

0 comments on commit ec8f42a

Please sign in to comment.