org.elasticsearch.script
Interface SearchScript

All Superinterfaces:
ExecutableScript
All Known Implementing Classes:
AbstractDoubleSearchScript, AbstractFloatSearchScript, AbstractLongSearchScript, AbstractSearchScript, MvelScriptEngineService.MvelSearchScript, ScriptService.DocScoreSearchScript

public interface SearchScript
extends ExecutableScript

A search script.


Method Summary
 double runAsDouble()
           
 float runAsFloat()
           
 long runAsLong()
           
 void setNextDocId(int doc)
           
 void setNextReader(org.apache.lucene.index.IndexReader reader)
           
 void setNextScore(float score)
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 
Methods inherited from interface org.elasticsearch.script.ExecutableScript
run, setNextVar, unwrap
 

Method Detail

setScorer

void setScorer(org.apache.lucene.search.Scorer scorer)

setNextReader

void setNextReader(org.apache.lucene.index.IndexReader reader)

setNextDocId

void setNextDocId(int doc)

setNextScore

void setNextScore(float score)

runAsFloat

float runAsFloat()

runAsLong

long runAsLong()

runAsDouble

double runAsDouble()