Class SearchChainDispatcherSearcher

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.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 java.util.logging.Logger logger  
      • Fields inherited from class com.yahoo.component.AbstractComponent

        isDeconstructable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • 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 Detail

      • logger

        protected final java.util.logging.Logger logger
    • Constructor Detail

      • 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 Detail

      • 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