org.apache.lucene.analysis
Class KeywordAnalyzer
java.lang.Object
   org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer
       org.apache.lucene.analysis.ReusableAnalyzerBase
org.apache.lucene.analysis.ReusableAnalyzerBase
           org.apache.lucene.analysis.KeywordAnalyzer
org.apache.lucene.analysis.KeywordAnalyzer
- All Implemented Interfaces: 
- Closeable
- public final class KeywordAnalyzer 
- extends ReusableAnalyzerBase
"Tokenizes" the entire stream as a single token. This is useful
 for data like zip codes, ids, and some product names.
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
KeywordAnalyzer
public KeywordAnalyzer()
createComponents
protected ReusableAnalyzerBase.TokenStreamComponents createComponents(String fieldName,
                                                                      Reader reader)
- Description copied from class: ReusableAnalyzerBase
- Creates a new ReusableAnalyzerBase.TokenStreamComponentsinstance for this analyzer.
 
- 
- Specified by:
- createComponentsin class- ReusableAnalyzerBase
 
- 
- Parameters:
- fieldName- the name of the fields content passed to the- ReusableAnalyzerBase.TokenStreamComponentssink as a reader
- reader- the reader passed to the- Tokenizerconstructor
- Returns:
- the ReusableAnalyzerBase.TokenStreamComponentsfor this analyzer.