Class 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
    • Field Summary

      • Fields inherited from class com.yahoo.component.AbstractComponent

        isDeconstructable
    • 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.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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait