Search in sources :

Example 1 with ScriptFieldsFetchSubPhase

use of org.elasticsearch.search.fetch.subphase.ScriptFieldsFetchSubPhase in project elasticsearch by elastic.

the class SearchModule method registerFetchSubPhases.

private void registerFetchSubPhases(List<SearchPlugin> plugins) {
    registerFetchSubPhase(new ExplainFetchSubPhase());
    registerFetchSubPhase(new DocValueFieldsFetchSubPhase());
    registerFetchSubPhase(new ScriptFieldsFetchSubPhase());
    registerFetchSubPhase(new FetchSourceSubPhase());
    registerFetchSubPhase(new VersionFetchSubPhase());
    registerFetchSubPhase(new MatchedQueriesFetchSubPhase());
    registerFetchSubPhase(new HighlightPhase(settings, highlighters));
    registerFetchSubPhase(new ParentFieldSubFetchPhase());
    FetchPhaseConstructionContext context = new FetchPhaseConstructionContext(highlighters);
    registerFromPlugin(plugins, p -> p.getFetchSubPhases(context), this::registerFetchSubPhase);
}
Also used : ScriptFieldsFetchSubPhase(org.elasticsearch.search.fetch.subphase.ScriptFieldsFetchSubPhase) VersionFetchSubPhase(org.elasticsearch.search.fetch.subphase.VersionFetchSubPhase) MatchedQueriesFetchSubPhase(org.elasticsearch.search.fetch.subphase.MatchedQueriesFetchSubPhase) FetchPhaseConstructionContext(org.elasticsearch.plugins.SearchPlugin.FetchPhaseConstructionContext) ExplainFetchSubPhase(org.elasticsearch.search.fetch.subphase.ExplainFetchSubPhase) ParentFieldSubFetchPhase(org.elasticsearch.search.fetch.subphase.ParentFieldSubFetchPhase) DocValueFieldsFetchSubPhase(org.elasticsearch.search.fetch.subphase.DocValueFieldsFetchSubPhase) FetchSourceSubPhase(org.elasticsearch.search.fetch.subphase.FetchSourceSubPhase) HighlightPhase(org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase)

Aggregations

FetchPhaseConstructionContext (org.elasticsearch.plugins.SearchPlugin.FetchPhaseConstructionContext)1 DocValueFieldsFetchSubPhase (org.elasticsearch.search.fetch.subphase.DocValueFieldsFetchSubPhase)1 ExplainFetchSubPhase (org.elasticsearch.search.fetch.subphase.ExplainFetchSubPhase)1 FetchSourceSubPhase (org.elasticsearch.search.fetch.subphase.FetchSourceSubPhase)1 MatchedQueriesFetchSubPhase (org.elasticsearch.search.fetch.subphase.MatchedQueriesFetchSubPhase)1 ParentFieldSubFetchPhase (org.elasticsearch.search.fetch.subphase.ParentFieldSubFetchPhase)1 ScriptFieldsFetchSubPhase (org.elasticsearch.search.fetch.subphase.ScriptFieldsFetchSubPhase)1 VersionFetchSubPhase (org.elasticsearch.search.fetch.subphase.VersionFetchSubPhase)1 HighlightPhase (org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase)1