Class LinguisticsCase


  • public class LinguisticsCase
    extends Object
    This class provides a case normalization operation to be used e.g. when document search should be case insensitive.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • LinguisticsCase

        public LinguisticsCase()
    • Method Detail

      • toLowerCase

        public static String toLowerCase​(String in)
        The lower casing method to use in Vespa when doing language independent processing of natural language data. It is placed in a single place to ensure symmetry between e.g. query processing and indexing. Return a lowercased version of the given string. Since this is language independent, this is more of a case normalization operation than lowercasing.
        Parameters:
        in - the string to lowercase
        Returns:
        a string containing only lowercase characters