public abstract class TextAnalyzer
extends org.apache.lucene.analysis.Analyzer
Analyzer
base class that provides the facility to apply the SubtokenFilter
during indexing and duplicating the original tokens before any stemming filter is applied to support wildcard
queries and exact phrase queries on document fields.Constructor and Description |
---|
TextAnalyzer(boolean indexing) |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName) |
boolean |
isIndexing() |
protected org.apache.lucene.analysis.TokenStream |
wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream input)
Applies a
SubtokenFilter to the input token stream at document indexing time. |
protected org.apache.lucene.analysis.TokenStream |
wrapStreamForWilcardSearchSupport(org.apache.lucene.analysis.TokenStream input)
Applies a
KeywordRepeatFilter to the input token stream at document indexing time to store the original
tokens as keywords before any stemming filter is applied and therefore support wildcard searches and exact phrase
queries on document fields. |
public boolean isIndexing()
protected org.apache.lucene.analysis.TokenStream wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream input)
SubtokenFilter
to the input token stream at document indexing time.input
- token streamprotected org.apache.lucene.analysis.TokenStream wrapStreamForWilcardSearchSupport(org.apache.lucene.analysis.TokenStream input)
KeywordRepeatFilter
to the input token stream at document indexing time to store the original
tokens as keywords before any stemming filter is applied and therefore support wildcard searches and exact phrase
queries on document fields.input
- token streampublic abstract org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
createComponents
in class org.apache.lucene.analysis.Analyzer
Copyright © 2002-2024 Atlassian. All Rights Reserved.