Package com.yahoo.prelude.fastsearch
Class IndexedBackend
java.lang.Object
com.yahoo.prelude.fastsearch.VespaBackend
com.yahoo.prelude.fastsearch.IndexedBackend
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.VespaBackend
VespaBackend.DispatchPhase -
Field Summary
Fields inherited from class com.yahoo.prelude.fastsearch.VespaBackend
SORTABLE_ATTRIBUTES_SUMMARY_CLASS -
Constructor Summary
ConstructorsConstructorDescriptionIndexedBackend(ClusterParams clusterParams, Dispatcher dispatcher) Creates a Fastsearcher. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPartialFill(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 voidtransformQuery(Query query) Methods inherited from class com.yahoo.prelude.fastsearch.VespaBackend
ensureLegalSummaryClass, fill, getDefaultDocsumClass, getDocumentDatabase, getName, getServerId, iterableHits, search, shutDown, summaryNeedsQuery
-
Constructor Details
-
IndexedBackend
Creates a Fastsearcher.- Parameters:
dispatcher- 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.clusterParams- the cluster number, and other cluster backend parameters
-
-
Method Details
-
transformQuery
- Overrides:
transformQueryin classVespaBackend
-
doSearch2
Description copied from class:VespaBackendSearches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.- Specified by:
doSearch2in classVespaBackendquery- the query to search
-
doPartialFill
Perform a partial docsum fill for a temporary result representing a partition of the complete fill request.- Specified by:
doPartialFillin classVespaBackend- Parameters:
result- result containing a partition of the unfilled hitssummaryClass- the summary class we want to fill with
-
toString
-