Class FastSearcher

  • All Implemented Interfaces:
    com.yahoo.component.Component, 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
    • 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 node
        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.
        docSumParams - document summary parameters
        clusterParams - the cluster number, and other cluster backend parameters
        documentdbInfoConfig - document database parameters
    • Method Detail

      • 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 class VespaBackEndSearcher
        Parameters:
        query - the query to search
        execution - 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 class VespaBackEndSearcher
        Parameters:
        result - result containing a partition of the unfilled hits
        summaryClass - the summary class we want to fill with
      • toString

        public java.lang.String toString()
        Description copied from class: Searcher
        Returns "searcher 'getId()'"
        Overrides:
        toString in class Searcher