Package org.opensearch.search.query
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 Summary
Modifier and TypeMethodDescriptiondefault AggregationProcessor
aggregationProcessor
(SearchContext searchContext) AggregationProcessor
to use to setup and post process aggregation related collectors during search requestboolean
searchWith
(SearchContext searchContext, ContextIndexSearcher searcher, org.apache.lucene.search.Query query, LinkedList<QueryCollectorContext> collectors, boolean hasFilterCollector, boolean hasTimeout) Perform search usingCollectorManager
-
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 usingCollectorManager
- Parameters:
searchContext
- search contextsearcher
- context index searcherquery
- queryhasTimeout
- "true" if timeout was set, "false" otherwise- Returns:
- is rescoring required or not
- Throws:
IOException
- IOException
-
aggregationProcessor
AggregationProcessor
to use to setup and post process aggregation related collectors during search request- Parameters:
searchContext
- search context- Returns:
AggregationProcessor
to use
-