Class StopAnalyzer

    • Field Detail

      • ENGLISH_STOP_WORDS_SET

        public static final CharArraySet ENGLISH_STOP_WORDS_SET
        An unmodifiable set containing some common English words that are not usually useful for searching.
    • Constructor Detail

      • StopAnalyzer

        public StopAnalyzer​(Version matchVersion,
                            CharArraySet stopWords)
        Builds an analyzer with the stop words from the given set.
        Parameters:
        matchVersion - See above
        stopWords - Set of stop words
      • StopAnalyzer

        public StopAnalyzer​(Version matchVersion,
                            java.io.File stopwordsFile)
                     throws java.io.IOException
        Builds an analyzer with the stop words from the given file.
        Parameters:
        matchVersion - See above
        stopwordsFile - File to load stop words from
        Throws:
        java.io.IOException
        See Also:
        WordlistLoader.getWordSet(Reader, Version)
      • StopAnalyzer

        public StopAnalyzer​(Version matchVersion,
                            java.io.Reader stopwords)
                     throws java.io.IOException
        Builds an analyzer with the stop words from the given reader.
        Parameters:
        matchVersion - See above
        stopwords - Reader to load stop words from
        Throws:
        java.io.IOException
        See Also:
        WordlistLoader.getWordSet(Reader, Version)