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 PerFieldAnalyzerWrapper by delegating requests for
TokenStreams to the underlying Analyzer depending on the requested field name.org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents| Constructor and Description |
|---|
ScopedAnalyzer()
Deprecated.
let's try to make at least the default analyzer mandatory
|
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) |
void |
setGlobalAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer) |
createComponents, getOffsetGap, getPositionIncrementGap, initReader, wrapComponents, wrapReader@Deprecated public ScopedAnalyzer()
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)
protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapperpublic ScopedAnalyzer clone()
Copyright © 2006–2014 Hibernate. All rights reserved.