Package com.yahoo.search.querytransform
Class AllLowercasingSearcher
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.component.chain.ChainedComponent
com.yahoo.processing.Processor
com.yahoo.search.Searcher
com.yahoo.search.querytransform.LowercasingSearcher
com.yahoo.search.querytransform.AllLowercasingSearcher
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Comparable<com.yahoo.component.Component>
Transform all terms in the incoming query tree and highlight terms to lower
case. This searcher is a compatibility layer for customers needing to use
FSAs created for pre-5.1 systems.
Add this searcher to your search chain before any searcher running case-dependent automata with only lowercased contents, query transformers assuming lowercased input etc. Refer to the Vespa documentation on search chains and search chain ordering.
- Author:
- Steinar Knutsen
-
Field Summary
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldLowercase
(WordItem word, IndexFacts.Session settings) Override this to control whether a given term should be lowercased.boolean
shouldLowercase
(String commonPath, WordItem word, IndexFacts.Session settings) Methods inherited from class com.yahoo.search.querytransform.LowercasingSearcher
search
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
-
Constructor Details
-
AllLowercasingSearcher
public AllLowercasingSearcher()
-
-
Method Details
-
shouldLowercase
Description copied from class:LowercasingSearcher
Override this to control whether a given term should be lowercased.- Specified by:
shouldLowercase
in classLowercasingSearcher
- Parameters:
word
- a WordItem or subclass thereof which is a candidate for lowercasing- Returns:
- whether to convert the term to lower case
-
shouldLowercase
- Specified by:
shouldLowercase
in classLowercasingSearcher
-