Update scripting.asciidoc
Fix script syntax for script_score Closes #15096
This commit is contained in:
parent
02798951ef
commit
9dbda2af62
|
@ -121,10 +121,12 @@ curl -XPOST localhost:9200/_search -d '{
|
||||||
"functions": [
|
"functions": [
|
||||||
{
|
{
|
||||||
"script_score": {
|
"script_score": {
|
||||||
"lang": "groovy",
|
"script": {
|
||||||
"file": "calculate-score",
|
"lang": "groovy",
|
||||||
"params": {
|
"file": "calculate-score",
|
||||||
"my_modifier": 8
|
"params": {
|
||||||
|
"my_modifier": 8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -180,10 +182,12 @@ curl -XPOST localhost:9200/_search -d '{
|
||||||
"functions": [
|
"functions": [
|
||||||
{
|
{
|
||||||
"script_score": {
|
"script_score": {
|
||||||
"id": "indexedCalculateScore",
|
"script": {
|
||||||
"lang" : "groovy",
|
"id": "indexedCalculateScore",
|
||||||
"params": {
|
"lang" : "groovy",
|
||||||
"my_modifier": 8
|
"params": {
|
||||||
|
"my_modifier": 8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue