org.elasticsearch.search.fetch.script
Class ScriptFieldsSearchHitPhase

java.lang.Object
  extended by org.elasticsearch.search.fetch.script.ScriptFieldsSearchHitPhase
All Implemented Interfaces:
SearchHitPhase

public class ScriptFieldsSearchHitPhase
extends java.lang.Object
implements SearchHitPhase


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.fetch.SearchHitPhase
SearchHitPhase.HitContext
 
Constructor Summary
ScriptFieldsSearchHitPhase()
           
 
Method Summary
 void execute(SearchContext context, SearchHitPhase.HitContext hitContext)
          Executes the hit level phase, with a reader and doc id (note, its a low level reader, and the matching doc).
 boolean executionNeeded(SearchContext context)
           
 java.util.Map<java.lang.String,? extends SearchParseElement> parseElements()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptFieldsSearchHitPhase

@Inject
public ScriptFieldsSearchHitPhase()
Method Detail

parseElements

public java.util.Map<java.lang.String,? extends SearchParseElement> parseElements()
Specified by:
parseElements in interface SearchHitPhase

executionNeeded

public boolean executionNeeded(SearchContext context)
Specified by:
executionNeeded in interface SearchHitPhase

execute

public void execute(SearchContext context,
                    SearchHitPhase.HitContext hitContext)
             throws ElasticSearchException
Description copied from interface: SearchHitPhase
Executes the hit level phase, with a reader and doc id (note, its a low level reader, and the matching doc).

Specified by:
execute in interface SearchHitPhase
Throws:
ElasticSearchException