Class StopAnalyzer


  • public final class StopAnalyzer
    extends LexicalAnalyzer
    Divides text at non-letters; Applies the lowercase and stopword token filters. This analyzer is implemented using Apache Lucene.
    • Constructor Detail

      • StopAnalyzer

        public StopAnalyzer​(String name)
        Creates an instance of StopAnalyzer class.
        Parameters:
        name - the name value to set.
    • Method Detail

      • getStopwords

        public List<String> getStopwords()
        Get the stopwords property: A list of stopwords.
        Returns:
        the stopwords value.
      • setStopwords

        public StopAnalyzer setStopwords​(List<String> stopwords)
        Set the stopwords property: A list of stopwords.
        Parameters:
        stopwords - the stopwords value to set.
        Returns:
        the StopAnalyzer object itself.
      • setStopwords

        public StopAnalyzer setStopwords​(String... stopwords)
        Set the stopwords property: A list of stopwords.
        Parameters:
        stopwords - the stopwords value to set.
        Returns:
        the StopAnalyzer object itself.