Class StandardAnalyzer

    • Field Detail

      • ENGLISH_STOP_WORDS_SET

        @Deprecated
        public static final CharArraySet ENGLISH_STOP_WORDS_SET
        Deprecated.
        Use the stop words on EnglishAnalyzer in the analysis-common module
        An unmodifiable set containing some common English words that are not usually useful for searching.
      • DEFAULT_MAX_TOKEN_LENGTH

        public static final int DEFAULT_MAX_TOKEN_LENGTH
        Default maximum allowed token length
        See Also:
        Constant Field Values
      • STOP_WORDS_SET

        @Deprecated
        public static final CharArraySet STOP_WORDS_SET
        Deprecated.
        Use the stop words on EnglishAnalyzer in the analysis-common module
        An unmodifiable set containing some common English words that are usually not useful for searching.
    • Constructor Detail

      • StandardAnalyzer

        public StandardAnalyzer​(CharArraySet stopWords)
        Builds an analyzer with the given stop words.
        Parameters:
        stopWords - stop words
      • StandardAnalyzer

        public StandardAnalyzer()
        Builds an analyzer with the default stop words (STOP_WORDS_SET).