Package com.yahoo.prelude.fastsearch
Class FastSearcher
java.lang.Object
com.yahoo.prelude.fastsearch.VespaBackEndSearcher
com.yahoo.prelude.fastsearch.FastSearcher
The searcher which forwards queries to fdispatch nodes, using the fnet/fs4
network layer.
- Author:
- bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.prelude.fastsearch.VespaBackEndSearcher
VespaBackEndSearcher.FillHitsResult
-
Field Summary
Fields inherited from class com.yahoo.prelude.fastsearch.VespaBackEndSearcher
SORTABLE_ATTRIBUTES_SUMMARY_CLASS
-
Constructor Summary
ConstructorDescriptionFastSearcher
(String serverId, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, DocumentdbInfoConfig documentdbInfoConfig, SchemaInfo schemaInfo) Creates a Fastsearcher. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doPartialFill
(Result result, String summaryClass) Perform a partial docsum fill for a temporary result representing a partition of the complete fill request.Searches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.toString()
protected void
transformQuery
(Query query) Methods inherited from class com.yahoo.prelude.fastsearch.VespaBackEndSearcher
fill, fillHits, getDefaultDocsumClass, getDocumentDatabase, getName, getServerId, init, search, shutDown, summaryNeedsQuery
-
Constructor Details
-
FastSearcher
public FastSearcher(String serverId, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, DocumentdbInfoConfig documentdbInfoConfig, SchemaInfo schemaInfo) Creates a Fastsearcher.- Parameters:
serverId
- the resource pool used to create direct connections to the local search nodes when bypassing the dispatch nodedispatcher
- the dispatcher used (when enabled) to send summary requests over the rpc protocol. Eventually we will move everything to this protocol and never use dispatch nodes. At that point we won't need a cluster searcher above this to select and pass the right backend.docSumParams
- document summary parametersclusterParams
- the cluster number, and other cluster backend parametersdocumentdbInfoConfig
- document database parameters
-
-
Method Details
-
transformQuery
- Overrides:
transformQuery
in classVespaBackEndSearcher
-
doSearch2
Description copied from class:VespaBackEndSearcher
Searches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.- Specified by:
doSearch2
in classVespaBackEndSearcher
query
- the query to search
-
doPartialFill
Perform a partial docsum fill for a temporary result representing a partition of the complete fill request.- Specified by:
doPartialFill
in classVespaBackEndSearcher
- Parameters:
result
- result containing a partition of the unfilled hitssummaryClass
- the summary class we want to fill with
-
toString
-