public class InnerHitsFetchSubPhase extends Object implements FetchSubPhase
FetchSubPhase.HitContext| Constructor and Description |
|---|
InnerHitsFetchSubPhase(SortParseElement sortParseElement,
FetchSourceParseElement sourceParseElement,
HighlighterParseElement highlighterParseElement,
FieldDataFieldsParseElement fieldDataFieldsParseElement,
ScriptFieldsParseElement scriptFieldsParseElement) |
| 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() |
void |
setFetchPhase(FetchPhase fetchPhase) |
@Inject public InnerHitsFetchSubPhase(SortParseElement sortParseElement, FetchSourceParseElement sourceParseElement, HighlighterParseElement highlighterParseElement, FieldDataFieldsParseElement fieldDataFieldsParseElement, ScriptFieldsParseElement scriptFieldsParseElement)
public Map<String,? extends SearchParseElement> parseElements()
parseElements in interface FetchSubPhasepublic boolean hitExecutionNeeded(SearchContext context)
hitExecutionNeeded in interface FetchSubPhasepublic void hitExecute(SearchContext context, FetchSubPhase.HitContext hitContext) throws ElasticsearchException
FetchSubPhasehitExecute in interface FetchSubPhaseElasticsearchExceptionpublic boolean hitsExecutionNeeded(SearchContext context)
hitsExecutionNeeded in interface FetchSubPhasepublic void hitsExecute(SearchContext context, InternalSearchHit[] hits) throws ElasticsearchException
hitsExecute in interface FetchSubPhaseElasticsearchExceptionpublic void setFetchPhase(FetchPhase fetchPhase)
Copyright © 2009–2016. All rights reserved.