org.elasticsearch.script.groovy
Class GroovyScriptEngineService.GroovySearchScript
java.lang.Object
org.elasticsearch.script.groovy.GroovyScriptEngineService.GroovySearchScript
- All Implemented Interfaces:
- org.elasticsearch.script.ExecutableScript, org.elasticsearch.script.SearchScript
- Enclosing class:
- GroovyScriptEngineService
public static class GroovyScriptEngineService.GroovySearchScript
- extends java.lang.Object
- implements org.elasticsearch.script.SearchScript
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyScriptEngineService.GroovySearchScript
public GroovyScriptEngineService.GroovySearchScript(groovy.lang.Script script,
org.elasticsearch.search.lookup.SearchLookup lookup)
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
- Specified by:
setScorer in interface org.elasticsearch.script.SearchScript
setNextReader
public void setNextReader(org.apache.lucene.index.IndexReader reader)
- Specified by:
setNextReader in interface org.elasticsearch.script.SearchScript
setNextDocId
public void setNextDocId(int doc)
- Specified by:
setNextDocId in interface org.elasticsearch.script.SearchScript
setNextScore
public void setNextScore(float score)
- Specified by:
setNextScore in interface org.elasticsearch.script.SearchScript
setNextVar
public void setNextVar(java.lang.String name,
java.lang.Object value)
- Specified by:
setNextVar in interface org.elasticsearch.script.ExecutableScript
run
public java.lang.Object run()
- Specified by:
run in interface org.elasticsearch.script.ExecutableScript
runAsFloat
public float runAsFloat()
- Specified by:
runAsFloat in interface org.elasticsearch.script.SearchScript
runAsLong
public long runAsLong()
- Specified by:
runAsLong in interface org.elasticsearch.script.SearchScript
runAsDouble
public double runAsDouble()
- Specified by:
runAsDouble in interface org.elasticsearch.script.SearchScript
unwrap
public java.lang.Object unwrap(java.lang.Object value)
- Specified by:
unwrap in interface org.elasticsearch.script.ExecutableScript