Update significantterms-aggregation.asciidoc

Fix scripted significant terms example to use `params.` prefix for painless
This commit is contained in:
Clinton Gormley 2016-11-14 09:38:12 +01:00
parent 1fd5c47e7f
commit 30d342c87c
1 changed files with 4 additions and 1 deletions

View File

@ -353,7 +353,10 @@ Customized scores can be implemented via a script:
--------------------------------------------------
"script_heuristic": {
"script": "_subset_freq/(_superset_freq - _subset_freq + 1)"
"script": {
"lang": "painless",
"inline": "params._subset_freq/(params._superset_freq - params._subset_freq + 1)"
}
}
--------------------------------------------------