Class IndexedBackend

java.lang.Object
com.yahoo.prelude.fastsearch.VespaBackend
com.yahoo.prelude.fastsearch.IndexedBackend

public class IndexedBackend extends VespaBackend
The searcher which forwards queries to fdispatch nodes, using the fnet/fs4 network layer.
Author:
bratseth
  • Constructor Details

    • IndexedBackend

      public IndexedBackend(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

    • transformQuery

      protected void transformQuery(Query query)
      Overrides:
      transformQuery in class VespaBackend
    • doSearch2

      public Result doSearch2(String schema, Query query)
      Description copied from class: VespaBackend
      Searches a search cluster This is an endpoint - searchers will never propagate the search to any nested searcher.
      Specified by:
      doSearch2 in class VespaBackend
      query - the query to search
    • 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 VespaBackend
      Parameters:
      result - result containing a partition of the unfilled hits
      summaryClass - the summary class we want to fill with
    • toString

      public String toString()
      Overrides:
      toString in class Object