Package com.yahoo.prelude.fastsearch
Class FastSearcher
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.search.cluster.PingableSearcher
com.yahoo.prelude.fastsearch.VespaBackEndSearcher
com.yahoo.prelude.fastsearch.FastSearcher
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Comparable<com.yahoo.component.Component>
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
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
ConstructorDescriptionFastSearcher
(String serverId, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, DocumentdbInfoConfig documentdbInfoConfig) 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.protected boolean
Pings the backend.toString()
Returns "searcher 'getId()'"protected void
transformQuery
(Query query) Methods inherited from class com.yahoo.prelude.fastsearch.VespaBackEndSearcher
fill, fillHits, getDefaultDocsumClass, getDocsumDefinitionSet, getDocumentDatabase, getLogger, getName, getServerId, init, search, shutDown, summaryNeedsQuery
Methods inherited from class com.yahoo.search.Searcher
ensureFilled, process
Methods inherited from class com.yahoo.component.chain.ChainedComponent
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
Methods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable
-
Constructor Details
-
FastSearcher
public FastSearcher(String serverId, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, DocumentdbInfoConfig documentdbInfoConfig) 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
-
ping
Pings the backend. Does not propagate to other searchers.- Overrides:
ping
in classPingableSearcher
-
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
- Parameters:
query
- the query to searchexecution
- the query execution context
-
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
Description copied from class:Searcher
Returns "searcher 'getId()'" -
isLoggingFine
protected boolean isLoggingFine()- Overrides:
isLoggingFine
in classVespaBackEndSearcher
-