DLESE Tools
v1.6.0

org.dlese.dpc.index.analysis
Class KeywordAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by 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

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
KeywordAnalyzer()
           
 
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
 

Constructor Detail

KeywordAnalyzer

public KeywordAnalyzer()
Method Detail

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 field
reader - The Reader
Returns:
A TokenStream that includes all characters

DLESE Tools
v1.6.0