Class FrenchAnalyzer

    • Constructor Detail

      • FrenchAnalyzer

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

        public FrenchAnalyzer​(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
      • FrenchAnalyzer

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

      • getDefaultStopSet

        public static Set<?> getDefaultStopSet()
        Returns an unmodifiable instance of the default stop-words set.
        Returns:
        an unmodifiable instance of the default stop-words set.
      • 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, ElisionFilter, LowerCaseFilter, StopFilter, KeywordMarkerFilter if a stem exclusion set is provided, and FrenchLightStemFilter