Class GermanAnalyzer

    • Constructor Detail

      • GermanAnalyzer

        public GermanAnalyzer​(org.apache.lucene.util.Version matchVersion)
        Builds an analyzer with the default stop words: getDefaultStopSet().
      • GermanAnalyzer

        public GermanAnalyzer​(org.apache.lucene.util.Version matchVersion,
                              Set<?> stopwords)
        Builds an analyzer with the given stop words
        Parameters:
        matchVersion - lucene compatibility version
        stopwords - a stopword set
      • GermanAnalyzer

        public GermanAnalyzer​(org.apache.lucene.util.Version matchVersion,
                              Set<?> stopwords,
                              Set<?> stemExclusionSet)
        Builds an analyzer with the given stop words
        Parameters:
        matchVersion - lucene compatibility version
        stopwords - a stopword set
        stemExclusionSet - a stemming exclusion set
      • GermanAnalyzer

        @Deprecated
        public GermanAnalyzer​(org.apache.lucene.util.Version matchVersion,
                              Map<?,​?> stopwords)
        Builds an analyzer with the given stop words.
    • Method Detail

      • getDefaultStopSet

        public static final Set<?> getDefaultStopSet()
        Returns a set of default German-stopwords
        Returns:
        a set of default German-stopwords
      • createComponents

        protected org.apache.lucene.analysis.ReusableAnalyzerBase.TokenStreamComponents createComponents​(String fieldName,
                                                                                                         Reader reader)
        Creates ReusableAnalyzerBase.TokenStreamComponents used to tokenize all the text in the provided Reader.
        Specified by:
        createComponents in class org.apache.lucene.analysis.ReusableAnalyzerBase
        Returns:
        ReusableAnalyzerBase.TokenStreamComponents built from a StandardTokenizer filtered with StandardFilter, LowerCaseFilter, StopFilter , KeywordMarkerFilter if a stem exclusion set is provided, GermanNormalizationFilter and GermanLightStemFilter