Class LuteceFrenchAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
fr.paris.lutece.plugins.lucene.service.analyzer.LuteceFrenchAnalyzer
All Implemented Interfaces:
Closeable, AutoCloseable

public class LuteceFrenchAnalyzer extends org.apache.lucene.analysis.Analyzer
FrenchAnalyzer, adding ElisionFilter and ASCIIFoldingFilter.
  1. StandardTokenizer
  2. ElisionFilter
  3. StopFilter
  4. ASCIIFoldingFilter
  5. LowerCaseFilter
See Also:
  • FrenchAnalyzer
  • ElisionFilter
  • ASCIIFoldingFilter
  • Analyzer
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer

    org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
    Extended list of typical French stopwords.

    Fields inherited from class org.apache.lucene.analysis.Analyzer

    GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Builds an analyzer with the default stop words ( FRENCH_STOP_WORDS).
    Builds an analyzer with the given stop words.
    Builds an analyzer with the given stop words.
  • Method Summary

    Methods inherited from class org.apache.lucene.analysis.Analyzer

    close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, normalize, setVersion, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FRENCH_STOP_WORDS

      public static final String[] FRENCH_STOP_WORDS
      Extended list of typical French stopwords.
  • Constructor Details

    • LuteceFrenchAnalyzer

      public LuteceFrenchAnalyzer()
      Builds an analyzer with the default stop words ( FRENCH_STOP_WORDS).
    • LuteceFrenchAnalyzer

      public LuteceFrenchAnalyzer(String[] stopwords)
      Builds an analyzer with the given stop words.
      Parameters:
      matchVersion - the version
      stopwords - the stop words
    • LuteceFrenchAnalyzer

      public LuteceFrenchAnalyzer(File stopwords) throws IOException
      Builds an analyzer with the given stop words.
      Parameters:
      matchVersion - the version
      stopwords - the stop words
      Throws:
      IOException - io exception