org.dlese.dpc.index.analysis
Class KeywordAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.dlese.dpc.index.analysis.KeywordAnalyzer
- All Implemented Interfaces:
- Closeable
public final class KeywordAnalyzer
- extends org.apache.lucene.analysis.Analyzer
An Analyzer that includes all characters in its tokens. Used for searching fields that are indexed using
the org.apache.lucene.document.Field#Keyword(String,String)
method. Note: Deprecated as of Lucene
v1.9 org.apache.lucene.analysis.KeywordAnalyzer is now available.
- Author:
- John Weatherley
Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
Method Summary |
org.apache.lucene.analysis.TokenStream |
tokenStream(String field,
Reader reader)
A TokenStream that includes all characters. |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeywordAnalyzer
public KeywordAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String field,
Reader reader)
- A TokenStream that includes all characters.
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
- Parameters:
field
- The fieldreader
- The Reader
- Returns:
- A TokenStream that includes all characters