org.elasticsearch.script.groovy
Class GroovyScriptEngineService.GroovySearchScript

java.lang.Object
  extended by 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


Constructor Summary
GroovyScriptEngineService.GroovySearchScript(groovy.lang.Script script, org.elasticsearch.search.lookup.SearchLookup lookup)
           
 
Method Summary
 java.lang.Object run()
           
 double runAsDouble()
           
 float runAsFloat()
           
 long runAsLong()
           
 void setNextDocId(int doc)
           
 void setNextReader(org.apache.lucene.index.IndexReader reader)
           
 void setNextScore(float score)
           
 void setNextVar(java.lang.String name, java.lang.Object value)
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 java.lang.Object unwrap(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyScriptEngineService.GroovySearchScript

public GroovyScriptEngineService.GroovySearchScript(groovy.lang.Script script,
                                                    org.elasticsearch.search.lookup.SearchLookup lookup)
Method Detail

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