Update significantterms-aggregation.asciidoc
Fix scripted significant terms example to use `params.` prefix for painless
This commit is contained in:
parent
1fd5c47e7f
commit
30d342c87c
|
@ -353,7 +353,10 @@ Customized scores can be implemented via a script:
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
"script_heuristic": {
|
"script_heuristic": {
|
||||||
"script": "_subset_freq/(_superset_freq - _subset_freq + 1)"
|
"script": {
|
||||||
|
"lang": "painless",
|
||||||
|
"inline": "params._subset_freq/(params._superset_freq - params._subset_freq + 1)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue