mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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": [
|
||||
{
|
||||
"script_score": {
|
||||
"lang": "groovy",
|
||||
"file": "calculate-score",
|
||||
"params": {
|
||||
"my_modifier": 8
|
||||
"script": {
|
||||
"lang": "groovy",
|
||||
"file": "calculate-score",
|
||||
"params": {
|
||||
"my_modifier": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -180,10 +182,12 @@ curl -XPOST localhost:9200/_search -d '{
|
||||
"functions": [
|
||||
{
|
||||
"script_score": {
|
||||
"id": "indexedCalculateScore",
|
||||
"lang" : "groovy",
|
||||
"params": {
|
||||
"my_modifier": 8
|
||||
"script": {
|
||||
"id": "indexedCalculateScore",
|
||||
"lang" : "groovy",
|
||||
"params": {
|
||||
"my_modifier": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user