Cleanup ScriptType (#21179)

Refactored ScriptType to clean up some of the variable and method names. Added more documentation. Deprecated the 'in' ParseField in favor of 'stored' to match the indexed scripts being replaced by stored scripts.
This commit is contained in:
Jack Conradson 2016-10-31 13:48:51 -07:00 committed by GitHub
parent 344a8028f8
commit 185dff7346
13 changed files with 107 additions and 57 deletions

View file

@ -120,7 +120,7 @@ GET test/_search
"function_score": {
"script_score": {
"script": {
"id": "my_script", <2>
"stored": "my_script", <2>
"lang": "javascript",
"params": {
"factor": 2