Search in sources :

Example 1 with MatchedQueriesPhase

use of org.opensearch.search.fetch.subphase.MatchedQueriesPhase in project OpenSearch by opensearch-project.

the class SearchModule method registerFetchSubPhases.

private void registerFetchSubPhases(List<SearchPlugin> plugins) {
    registerFetchSubPhase(new ExplainPhase());
    registerFetchSubPhase(new FetchDocValuesPhase());
    registerFetchSubPhase(new ScriptFieldsPhase());
    registerFetchSubPhase(new FetchSourcePhase());
    registerFetchSubPhase(new FetchFieldsPhase());
    registerFetchSubPhase(new FetchVersionPhase());
    registerFetchSubPhase(new SeqNoPrimaryTermPhase());
    registerFetchSubPhase(new MatchedQueriesPhase());
    registerFetchSubPhase(new HighlightPhase(highlighters));
    registerFetchSubPhase(new FetchScorePhase());
    FetchPhaseConstructionContext context = new FetchPhaseConstructionContext(highlighters);
    registerFromPlugin(plugins, p -> p.getFetchSubPhases(context), this::registerFetchSubPhase);
}
Also used : ScriptFieldsPhase(org.opensearch.search.fetch.subphase.ScriptFieldsPhase) ExplainPhase(org.opensearch.search.fetch.subphase.ExplainPhase) MatchedQueriesPhase(org.opensearch.search.fetch.subphase.MatchedQueriesPhase) FetchSourcePhase(org.opensearch.search.fetch.subphase.FetchSourcePhase) FetchScorePhase(org.opensearch.search.fetch.subphase.FetchScorePhase) SeqNoPrimaryTermPhase(org.opensearch.search.fetch.subphase.SeqNoPrimaryTermPhase) FetchPhaseConstructionContext(org.opensearch.plugins.SearchPlugin.FetchPhaseConstructionContext) FetchDocValuesPhase(org.opensearch.search.fetch.subphase.FetchDocValuesPhase) FetchVersionPhase(org.opensearch.search.fetch.subphase.FetchVersionPhase) FetchFieldsPhase(org.opensearch.search.fetch.subphase.FetchFieldsPhase) HighlightPhase(org.opensearch.search.fetch.subphase.highlight.HighlightPhase)

Aggregations

FetchPhaseConstructionContext (org.opensearch.plugins.SearchPlugin.FetchPhaseConstructionContext)1 ExplainPhase (org.opensearch.search.fetch.subphase.ExplainPhase)1 FetchDocValuesPhase (org.opensearch.search.fetch.subphase.FetchDocValuesPhase)1 FetchFieldsPhase (org.opensearch.search.fetch.subphase.FetchFieldsPhase)1 FetchScorePhase (org.opensearch.search.fetch.subphase.FetchScorePhase)1 FetchSourcePhase (org.opensearch.search.fetch.subphase.FetchSourcePhase)1 FetchVersionPhase (org.opensearch.search.fetch.subphase.FetchVersionPhase)1 MatchedQueriesPhase (org.opensearch.search.fetch.subphase.MatchedQueriesPhase)1 ScriptFieldsPhase (org.opensearch.search.fetch.subphase.ScriptFieldsPhase)1 SeqNoPrimaryTermPhase (org.opensearch.search.fetch.subphase.SeqNoPrimaryTermPhase)1 HighlightPhase (org.opensearch.search.fetch.subphase.highlight.HighlightPhase)1