Class QueryMultilingualAnalyzer

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

public class QueryMultilingualAnalyzer 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
    QueryMultilingualAnalyzer(org.apache.lucene.analysis.Analyzer defaultAnalyzer)
     
    QueryMultilingualAnalyzer(org.apache.lucene.analysis.Analyzer defaultAnalyzer, String tag)
     
  • 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

    • QueryMultilingualAnalyzer

      public QueryMultilingualAnalyzer(org.apache.lucene.analysis.Analyzer defaultAnalyzer)
    • QueryMultilingualAnalyzer

      public QueryMultilingualAnalyzer(org.apache.lucene.analysis.Analyzer defaultAnalyzer, String tag)
  • Method Details