Access search score in a script?


(Frank LaRosa) #1

Hi,

Is it possible to access the score in a script?

I tried using the expression doc['_score'].value, but it doesn't work.


(Shay Banon) #2

I thought you are a Java developer, and now you use Scripts :). The variable you should use is _score.

On Wednesday, January 25, 2012 at 11:17 PM, Frank LaRosa wrote:

Hi,

Is it possible to access the score in a script?

I tried using the expression doc['_score'].value, but it doesn't work.


(system) #3