Skip to content

Commit 0e18782

Browse files
fhopfclintongormley
authored andcommitted
Update bucket-script-aggregation.asciidoc (elastic#22219)
Example is missing "params." for painless
1 parent 7cfa689 commit 0e18782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/aggregations/pipeline/bucket-script-aggregation.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A `bucket_script` aggregation looks like this in isolation:
1818
"my_var1": "the_sum", <1>
1919
"my_var2": "the_value_count"
2020
},
21-
"script": "my_var1 / my_var2"
21+
"script": "params.my_var1 / params.my_var2"
2222
}
2323
}
2424
--------------------------------------------------

0 commit comments

Comments
 (0)