Package com.yahoo.prelude.searcher
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
,java.lang.Comparable<com.yahoo.component.Component>
public class JuniperSearcher extends Searcher
Converts juniper highlighting to XML styleNote: 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 java.lang.String
JUNIPER_TAG_REPLACING
static char
RAW_HIGHLIGHT_CHAR
static char
RAW_SEPARATOR_CHAR
-
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.search.Searcher
ensureFilled, getLogger, process, toString
-
Methods inherited from class com.yahoo.component.chain.ChainedComponent
getAnnotatedDependencies, getDefaultAnnotatedDependencies, getDependencies, initDependencies
-
-
-
-
Field Detail
-
RAW_HIGHLIGHT_CHAR
public static final char RAW_HIGHLIGHT_CHAR
- See Also:
- Constant Field Values
-
RAW_SEPARATOR_CHAR
public static final char RAW_SEPARATOR_CHAR
- See Also:
- Constant Field Values
-
JUNIPER_TAG_REPLACING
public static final java.lang.String JUNIPER_TAG_REPLACING
- See Also:
- Constant Field Values
-
-
Method Detail
-
search
public Result search(Query query, Execution execution)
Convert Juniper style property highlighting to XML style.
-
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.
-
-