public final class ScopedLuceneAnalyzer extends org.apache.lucene.analysis.AnalyzerWrapper implements ScopedAnalyzer
ScopedLuceneAnalyzer is a wrapper class containing all analyzers for a given class.
ScopedLuceneAnalyzer behaves similar to PerFieldAnalyzerWrapper
by delegating requests for TokenStreams to the underlying Analyzer depending on the requested field name.| Constructor and Description |
|---|
ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer) |
ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer,
Map<String,org.apache.lucene.analysis.Analyzer> scopedAnalyzers) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer |
getWrappedAnalyzer(String fieldName) |
boolean |
isCompositeOfSameInstances(ScopedLuceneAnalyzer other)
Compares the references of the global analyzer backing this ScopedAnalyzer
and each scoped analyzer.
|
String |
toString() |
createComponents, getOffsetGap, getPositionIncrementGap, initReader, wrapComponents, wrapReaderclose, getReuseStrategy, getVersion, setVersion, tokenStream, tokenStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer)
public boolean isCompositeOfSameInstances(ScopedLuceneAnalyzer other)
other - ScopedAnalyzer to compare toprotected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapperCopyright © 2006–2017 Hibernate. All rights reserved.