org.elasticsearch.search.highlight
Class HighlightPhase

java.lang.Object
  extended by org.elasticsearch.search.highlight.HighlightPhase
All Implemented Interfaces:
SearchHitPhase

public class HighlightPhase
extends java.lang.Object
implements SearchHitPhase


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.search.fetch.SearchHitPhase
SearchHitPhase.HitContext
 
Constructor Summary
HighlightPhase()
           
 
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

HighlightPhase

public HighlightPhase()
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