public class FastSearcher extends VespaBackEndSearcher
VespaBackEndSearcher.FillHitsResult
cacheControl, TRACE_DISABLE
Constructor and Description |
---|
FastSearcher(Backend dispatchBackend,
FS4ResourcePool fs4ResourcePool,
Dispatcher dispatcher,
SummaryParameters docSumParams,
ClusterParams clusterParams,
CacheParams cacheParams,
DocumentdbInfoConfig documentdbInfoConfig)
Creates a Fastsearcher.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doPartialFill(Result result,
String summaryClass)
Perform a partial docsum fill for a temporary result
representing a partition of the complete fill request.
|
Result |
doSearch2(Query query,
QueryPacket queryPacket,
CacheKey cacheKey,
Execution execution)
Searches a search cluster
This is an endpoint - searchers will never propagate the search to any nested searcher.
|
protected boolean |
isLoggingFine() |
static Pong |
ping(Ping ping,
Backend backend,
String name) |
Pong |
ping(Ping ping,
Execution execution)
Pings the backend.
|
String |
toString()
Returns "searcher 'getId()'"
|
protected void |
transformQuery(Query query) |
createQueryPacket, fill, fillHits, getCacheControl, getDefaultDocsumClass, getDocsumDefinitionSet, getDocumentDatabase, getLogger, getName, getSearcher, init, search, summaryNeedsQuery
ensureFilled, process
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
public FastSearcher(Backend dispatchBackend, FS4ResourcePool fs4ResourcePool, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, CacheParams cacheParams, DocumentdbInfoConfig documentdbInfoConfig)
dispatchBackend
- The backend object containing the connection to the dispatch node this should talk to
over the fs4 protocolfs4ResourcePool
- 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 parameterscacheParams
- the size, lifetime, and controller of our cachedocumentdbInfoConfig
- document database parameterspublic Pong ping(Ping ping, Execution execution)
ping
in class PingableSearcher
protected void transformQuery(Query query)
transformQuery
in class VespaBackEndSearcher
public Result doSearch2(Query query, QueryPacket queryPacket, CacheKey cacheKey, Execution execution)
VespaBackEndSearcher
doSearch2
in class VespaBackEndSearcher
query
- the query to searchqueryPacket
- the serialized query representation to pass to the search clustercacheKey
- the cache key created from the query packet, or null if caching is not usedexecution
- the query execution contextprotected void doPartialFill(Result result, String summaryClass)
doPartialFill
in class VespaBackEndSearcher
result
- result containing a partition of the unfilled hitssummaryClass
- the summary class we want to fill withpublic String toString()
Searcher
protected boolean isLoggingFine()
isLoggingFine
in class VespaBackEndSearcher
Copyright © 2018. All rights reserved.