We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0b6ffe + eedce53 commit 033b47aCopy full SHA for 033b47a
examples/search+json.js
@@ -43,15 +43,15 @@ async function searchPlusJson() {
43
// documents: [...]
44
// }
45
46
- // Some aggrigrations
+ // Some aggregrations
47
console.log(
48
await client.ft.aggregate('users', '*', {
49
STEPS: [{
50
type: AggregateSteps.GROUPBY,
51
REDUCE: [{
52
type: AggregateGroupByReducers.AVG,
53
property: '$.age',
54
- AS: 'avarageAge'
+ AS: 'averageAge'
55
}, {
56
type: AggregateGroupByReducers.SUM,
57
property: '$.coins',
@@ -63,7 +63,7 @@ async function searchPlusJson() {
63
// {
64
// total: 2,
65
// results: [{
66
- // avarageAvg: '27.5',
+ // averageAge: '27.5',
67
// totalCoins: '115'
68
// }]
69
0 commit comments