public class HighlightPhase extends AbstractComponent implements FetchSubPhase
FetchSubPhase.ContextFactory<SubPhaseContext extends FetchSubPhaseContext>, FetchSubPhase.HitContextdeprecationLogger, logger, settings| Constructor and Description |
|---|
HighlightPhase(Settings settings,
Highlighters highlighters) |
| Modifier and Type | Method and Description |
|---|---|
void |
hitExecute(SearchContext context,
FetchSubPhase.HitContext hitContext)
Executes the hit level phase, with a reader and doc id (note, its a low level reader, and the matching doc).
|
boolean |
hitExecutionNeeded(SearchContext context) |
void |
hitsExecute(SearchContext context,
InternalSearchHit[] hits) |
boolean |
hitsExecutionNeeded(SearchContext context) |
Map<String,? extends SearchParseElement> |
parseElements() |
logDeprecatedSetting, logRemovedSetting, nodeName@Inject public HighlightPhase(Settings settings, Highlighters highlighters)
public Map<String,? extends SearchParseElement> parseElements()
parseElements in interface FetchSubPhasepublic boolean hitsExecutionNeeded(SearchContext context)
hitsExecutionNeeded in interface FetchSubPhasepublic void hitsExecute(SearchContext context, InternalSearchHit[] hits)
hitsExecute in interface FetchSubPhasepublic boolean hitExecutionNeeded(SearchContext context)
hitExecutionNeeded in interface FetchSubPhasepublic void hitExecute(SearchContext context, FetchSubPhase.HitContext hitContext)
FetchSubPhasehitExecute in interface FetchSubPhaseCopyright © 2009–2017. All rights reserved.