public class FieldDataFieldsFetchSubPhase extends Object implements FetchSubPhase
"fielddata_fields": ["field1", "field2"]
FetchSubPhase.ContextFactory<SubPhaseContext extends FetchSubPhaseContext>, FetchSubPhase.HitContext
Modifier and Type | Field and Description |
---|---|
static FetchSubPhase.ContextFactory<FieldDataFieldsContext> |
CONTEXT_FACTORY |
static String[] |
NAMES |
Constructor and Description |
---|
FieldDataFieldsFetchSubPhase() |
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() |
public static final String[] NAMES
public static final FetchSubPhase.ContextFactory<FieldDataFieldsContext> CONTEXT_FACTORY
@Inject public FieldDataFieldsFetchSubPhase()
public Map<String,? extends SearchParseElement> parseElements()
parseElements
in interface FetchSubPhase
public boolean hitsExecutionNeeded(SearchContext context)
hitsExecutionNeeded
in interface FetchSubPhase
public void hitsExecute(SearchContext context, InternalSearchHit[] hits)
hitsExecute
in interface FetchSubPhase
public boolean hitExecutionNeeded(SearchContext context)
hitExecutionNeeded
in interface FetchSubPhase
public void hitExecute(SearchContext context, FetchSubPhase.HitContext hitContext)
FetchSubPhase
hitExecute
in interface FetchSubPhase
Copyright © 2009–2016. All rights reserved.