public final class ScopedAnalyzer
extends org.apache.lucene.analysis.AnalyzerWrapper
ScopedAnalyzer
is a wrapper class containing all analyzers for a given class.
ScopedAnalyzer
behaves similar to org.apache.lucene.analysis.miscellaneous.PerFieldAnalyzerWrapper
by delegating requests for TokenStream
s to the underlying Analyzer
depending on the requested field name.Constructor and Description |
---|
ScopedAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer) |
Modifier and Type | Method and Description |
---|---|
void |
addScopedAnalyzer(String scope,
org.apache.lucene.analysis.Analyzer scopedAnalyzer) |
ScopedAnalyzer |
clone() |
protected org.apache.lucene.analysis.Analyzer |
getWrappedAnalyzer(String fieldName) |
boolean |
isCompositeOfSameInstances(ScopedAnalyzer other)
Compares the references of the global analyzer backing this ScopedAnalyzer
and each scoped analyzer.
|
void |
setGlobalAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer) |
createComponents, getOffsetGap, getPositionIncrementGap, initReader, wrapComponents, wrapReader
public ScopedAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer)
public void setGlobalAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer)
public void addScopedAnalyzer(String scope, org.apache.lucene.analysis.Analyzer scopedAnalyzer)
public boolean isCompositeOfSameInstances(ScopedAnalyzer other)
other
- ScopedAnalyzer to compare toprotected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer
in class org.apache.lucene.analysis.AnalyzerWrapper
public ScopedAnalyzer clone()
Copyright © 2006–2016 Hibernate. All rights reserved.