Package org.elasticsearch.script
Class ScoreAccessor
java.lang.Object
java.lang.Number
org.elasticsearch.script.ScoreAccessor
- All Implemented Interfaces:
Serializable
A float encapsulation that dynamically accesses the score of a document.
The provided
Scorable
is used to retrieve the score
for the current document.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
ScoreAccessor
public ScoreAccessor(org.apache.lucene.search.Scorable scorer)
-
-
Method Details
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-