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(ClusterParams clusterParams, Dispatcher dispatcher)
      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

      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