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
,java.lang.Comparable<com.yahoo.component.Component>
public class FastSearcher extends VespaBackEndSearcher
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
-
-
Constructor Summary
Constructors Constructor Description FastSearcher(java.lang.String serverId, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, DocumentdbInfoConfig documentdbInfoConfig)
Creates a Fastsearcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPartialFill(Result result, java.lang.String summaryClass)
Perform a partial docsum fill for a temporary result representing a partition of the complete fill request.Result
doSearch2(Query query, Execution execution)
Searches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.protected boolean
isLoggingFine()
Pong
ping(Ping ping, Execution execution)
Pings the backend.java.lang.String
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
-
-
-
-
Constructor Detail
-
FastSearcher
public FastSearcher(java.lang.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 Detail
-
ping
public Pong ping(Ping ping, Execution execution)
Pings the backend. Does not propagate to other searchers.- Overrides:
ping
in classPingableSearcher
-
transformQuery
protected void transformQuery(Query query)
- Overrides:
transformQuery
in classVespaBackEndSearcher
-
doSearch2
public Result doSearch2(Query query, Execution execution)
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
protected void doPartialFill(Result result, java.lang.String summaryClass)
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
public java.lang.String toString()
Description copied from class:Searcher
Returns "searcher 'getId()'"
-
isLoggingFine
protected boolean isLoggingFine()
- Overrides:
isLoggingFine
in classVespaBackEndSearcher
-
-