Package com.yahoo.search.querytransform
Class VespaLowercasingSearcher
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.VespaLowercasingSearcher
- All Implemented Interfaces:
com.yahoo.component.chain.model.Chainable,com.yahoo.component.Component,com.yahoo.component.Deconstructable,Comparable<com.yahoo.component.Component>
Transform terms in query tree to lower case based on Vespa index settings.
- Author:
- Steinar Knutsen
-
Field Summary
FieldsFields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldLowercase(WordItem word, IndexFacts.Session indexFacts) Override this to control whether a given term should be lowercased.booleanshouldLowercase(String commonPath, WordItem word, IndexFacts.Session indexFacts) Methods inherited from class com.yahoo.search.querytransform.LowercasingSearcher
searchMethods inherited from class com.yahoo.search.Searcher
ensureFilled, fill, getLogger, process, toStringMethods inherited from class com.yahoo.component.chain.ChainedComponent
getDependencies, initDependenciesMethods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructableMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.component.chain.model.Chainable
getAnnotatedDependencies
-
Field Details
-
LOWERCASING
- See Also:
-
-
Constructor Details
-
VespaLowercasingSearcher
-
-
Method Details
-
shouldLowercase
Description copied from class:LowercasingSearcherOverride this to control whether a given term should be lowercased.- Specified by:
shouldLowercasein 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:
shouldLowercasein classLowercasingSearcher
-