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.Component
,com.yahoo.component.Deconstructable
,java.lang.Comparable<com.yahoo.component.Component>
public class VespaLowercasingSearcher extends LowercasingSearcher
Transform terms in query tree to lower case based on Vespa index settings.- Author:
- Steinar Knutsen
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOWERCASING
-
Constructor Summary
Constructors Constructor Description VespaLowercasingSearcher(LowercasingConfig cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldLowercase(WordItem word, IndexFacts.Session indexFacts)
Override this to control whether a given term should be lowercased.boolean
shouldLowercase(java.lang.String commonPath, WordItem word, IndexFacts.Session indexFacts)
-
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
-
-
-
-
Field Detail
-
LOWERCASING
public static final java.lang.String LOWERCASING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VespaLowercasingSearcher
public VespaLowercasingSearcher(LowercasingConfig cfg)
-
-
Method Detail
-
shouldLowercase
public boolean shouldLowercase(WordItem word, IndexFacts.Session indexFacts)
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
public boolean shouldLowercase(java.lang.String commonPath, WordItem word, IndexFacts.Session indexFacts)
- Specified by:
shouldLowercase
in classLowercasingSearcher
-
-