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
,java.lang.Comparable<com.yahoo.component.Component>
public class AllLowercasingSearcher extends LowercasingSearcher
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
-
-
Constructor Summary
Constructors Constructor Description AllLowercasingSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldLowercase(WordItem word, IndexFacts.Session settings)
Override this to control whether a given term should be lowercased.boolean
shouldLowercase(java.lang.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
-
-
-
-
Method Detail
-
shouldLowercase
public boolean shouldLowercase(WordItem word, IndexFacts.Session settings)
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 settings)
- Specified by:
shouldLowercase
in classLowercasingSearcher
-
-