Class JuniperSearcher

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.Comparable<com.yahoo.component.Component>

    public class JuniperSearcher
    extends Searcher
    Converts juniper highlighting to XML style

    Note: This searcher only converts backend binary highlighting and separators to the configured highlighting and separator tags.

    Author:
    Steinar Knutsen
    • Constructor Summary

      Constructors 
      Constructor Description
      JuniperSearcher​(com.yahoo.component.ComponentId id, com.yahoo.container.QrSearchersConfig config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fill​(Result result, java.lang.String summaryClass, Execution execution)
      Fill hit properties with data using the given summary class.
      Result search​(Query query, Execution execution)
      Convert Juniper style property highlighting to XML style.
      • 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
    • Constructor Detail

      • JuniperSearcher

        @Inject
        public JuniperSearcher​(com.yahoo.component.ComponentId id,
                               com.yahoo.container.QrSearchersConfig config)
    • Method Detail

      • search

        public Result search​(Query query,
                             Execution execution)
        Convert Juniper style property highlighting to XML style.
        Specified by:
        search in class Searcher
        Parameters:
        query - the query
        Returns:
        the result of making this query
      • fill

        public void fill​(Result result,
                         java.lang.String summaryClass,
                         Execution execution)
        Description copied from class: Searcher
        Fill hit properties with data using the given summary class. Calling this on already filled results has no cost.

        This needs to be overridden by federating searchers to contact search sources again by propagating the fill call down through the search chain, and by source searchers which talks to fill capable backends to request the data to be filled. Other searchers do not need to override this.

        Overrides:
        fill in class Searcher
        Parameters:
        result - the result to fill
        summaryClass - the name of the collection of fields to fetch the values of, or null to use the default