Painless syntax


(Neil Alex) #1

Hello ,

Can somebody point out what I am doing wrong here .
{
"script_score" : {
"script" : {
"lang": "painless",
"inline": "float a= doc['location'].planeDistance(33.6839473,-117.7946942); _score * log(a + 1);"
}
}
}

Many thanks in advance!!


(Neil Alex) #2

Must use Math.log --- Thanks


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.