Interface QueryPhaseSearcher

All Known Implementing Classes:
ConcurrentQueryPhaseSearcher, QueryPhase.DefaultQueryPhaseSearcher, QueryPhaseSearcherWrapper

@PublicApi(since="2.0.0") public interface QueryPhaseSearcher
The extension point which allows to plug in custom search implementation to be used at QueryPhase.
Opensearch.api:
  • Method Details

    • searchWith

      boolean searchWith(SearchContext searchContext, ContextIndexSearcher searcher, org.apache.lucene.search.Query query, LinkedList<QueryCollectorContext> collectors, boolean hasFilterCollector, boolean hasTimeout) throws IOException
      Perform search using CollectorManager
      Parameters:
      searchContext - search context
      searcher - context index searcher
      query - query
      hasTimeout - "true" if timeout was set, "false" otherwise
      Returns:
      is rescoring required or not
      Throws:
      IOException - IOException
    • aggregationProcessor

      default AggregationProcessor aggregationProcessor(SearchContext searchContext)
      AggregationProcessor to use to setup and post process aggregation related collectors during search request
      Parameters:
      searchContext - search context
      Returns:
      AggregationProcessor to use