Class IndexingMultilingualAnalyzer

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

public class IndexingMultilingualAnalyzer 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
    IndexingMultilingualAnalyzer(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, normalize, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

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

    • IndexingMultilingualAnalyzer

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