Class SearchChainDispatcherSearcher

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.search.query.rewrite.SearchChainDispatcherSearcher
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>

public class SearchChainDispatcherSearcher extends Searcher
Execute rewriter search chain specified by the user. It's inteneded to be used for executing rewriter search chains for different markets.
Author:
Karen Sze Wing Lee
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Logger
     

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for unit test
    SearchChainDispatcherSearcher(com.yahoo.component.ComponentId id)
    Constructor for this searcher
  • Method Summary

    Modifier and Type
    Method
    Description
    search(Query query, Execution execution)
    Execute another search chain specified by the user
    - Retrieve search chain specified by the user through param
    - Execute specified search chain if exist

    Methods inherited from class com.yahoo.search.Searcher

    ensureFilled, fill, getLogger, process, toString

    Methods inherited from class com.yahoo.component.chain.ChainedComponent

    getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies

    Methods inherited from class com.yahoo.component.AbstractComponent

    clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • logger

      protected final Logger logger
  • Constructor Details

    • SearchChainDispatcherSearcher

      public SearchChainDispatcherSearcher(com.yahoo.component.ComponentId id)
      Constructor for this searcher
      Parameters:
      id - Component ID (see vespa's search container doc for more detail)
    • SearchChainDispatcherSearcher

      public SearchChainDispatcherSearcher()
      Constructor for unit test
  • Method Details

    • search

      public Result search(Query query, Execution execution)
      Execute another search chain specified by the user
      - Retrieve search chain specified by the user through param
      - Execute specified search chain if exist
      Specified by:
      search in class Searcher
      Parameters:
      query - the query
      Returns:
      the result of making this query