Class FastSearcher

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, 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 Details

    • FastSearcher

      public FastSearcher(String serverId, Dispatcher dispatcher, SummaryParameters docSumParams, ClusterParams clusterParams, DocumentdbInfoConfig documentdbInfoConfig, SchemaInfo schemaInfo)
      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 Details

    • ping

      public Pong ping(Ping ping, Execution execution)
      Pings the backend. Does not propagate to other searchers.
      Overrides:
      ping in class PingableSearcher
    • transformQuery

      protected void transformQuery(Query query)
      Overrides:
      transformQuery in class VespaBackEndSearcher
    • 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, 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 String toString()
      Description copied from class: Searcher
      Returns "searcher 'getId()'"
      Overrides:
      toString in class Searcher