Class MultilingualAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.AnalyzerWrapper
org.apache.lucene.analysis.DelegatingAnalyzerWrapper
org.apache.jena.query.text.analyzer.MultilingualAnalyzer
All Implemented Interfaces:
Closeable, AutoCloseable

public class MultilingualAnalyzer extends org.apache.lucene.analysis.DelegatingAnalyzerWrapper
Lucene Analyzer implementation that delegates to a language-specific Analyzer based on a field name suffix: e.g. field="label_en" will use an EnglishAnalyzer.
  • 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 inherited from class org.apache.lucene.analysis.Analyzer

    GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
  • Constructor Summary

    Constructors
    Constructor
    Description
    MultilingualAnalyzer(org.apache.lucene.analysis.Analyzer defaultAnalyzer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

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

    getOffsetGap, getPositionIncrementGap, initReader

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

    close, getReuseStrategy, getVersion, normalize, setVersion, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MultilingualAnalyzer

      public MultilingualAnalyzer(org.apache.lucene.analysis.Analyzer defaultAnalyzer)
  • Method Details