Class JuniperSearcher

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.prelude.searcher.JuniperSearcher
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final char
     
    static final char
     

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    fill(Result result, String summaryClass, Execution execution)
    Fill hit properties with data using the given summary class.
    search(Query query, Execution execution)
    Convert Juniper style property highlighting to XML style.

    Methods inherited from class com.yahoo.search.Searcher

    ensureFilled, 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

  • Constructor Details

    • JuniperSearcher

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

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