[DOCS] Fix missing quote in script-score-query.asciidoc (#50590)
This commit is contained in:
parent
218bd19034
commit
44827e577e
|
@ -281,7 +281,7 @@ as described in <<random-score-function, random score function>>.
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
"script" : {
|
"script" : {
|
||||||
"source" : "Math.log10(doc['field'].value * params.factor)",
|
"source" : "Math.log10(doc['field'].value * params.factor)",
|
||||||
params" : {
|
"params" : {
|
||||||
"factor" : 5
|
"factor" : 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,7 @@ a value `1` if a document doesn't have a field `field`:
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
"script" : {
|
"script" : {
|
||||||
"source" : "Math.log10((doc['field'].size() == 0 ? 1 : doc['field'].value()) * params.factor)",
|
"source" : "Math.log10((doc['field'].size() == 0 ? 1 : doc['field'].value()) * params.factor)",
|
||||||
params" : {
|
"params" : {
|
||||||
"factor" : 5
|
"factor" : 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue