Access search score in a script?

Hi,

Is it possible to access the score in a script?

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

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.