Class HighlightPhase
java.lang.Object
org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase
- All Implemented Interfaces:
FetchSubPhase
public class HighlightPhase extends java.lang.Object implements FetchSubPhase
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.fetch.FetchSubPhase
FetchSubPhase.HitContext
-
Constructor Summary
Constructors Constructor Description HighlightPhase(java.util.Map<java.lang.String,Highlighter> highlighters)
-
Method Summary
Modifier and Type Method Description FetchSubPhaseProcessor
getProcessor(FetchContext context)
Returns aFetchSubPhaseProcessor
for this sub phase.FetchSubPhaseProcessor
getProcessor(FetchContext context, SearchHighlightContext highlightContext, org.apache.lucene.search.Query query)
-
Constructor Details
-
Method Details
-
getProcessor
Description copied from interface:FetchSubPhase
Returns aFetchSubPhaseProcessor
for this sub phase. If nothing should be executed for the providedFetchContext
, then the implementation should returnnull
- Specified by:
getProcessor
in interfaceFetchSubPhase
-
getProcessor
public FetchSubPhaseProcessor getProcessor(FetchContext context, SearchHighlightContext highlightContext, org.apache.lucene.search.Query query)
-