org.apache.lucene.analysis.core
Class WhitespaceAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.lucene.analysis.core.WhitespaceAnalyzer
All Implemented Interfaces:
Closeable

public final class WhitespaceAnalyzer
extends Analyzer

An Analyzer that uses WhitespaceTokenizer.

You must specify the required Version compatibility when creating CharTokenizer:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, Analyzer.TokenStreamComponents
 
Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
 
Constructor Summary
WhitespaceAnalyzer(Version matchVersion)
          Creates a new WhitespaceAnalyzer
 
Method Summary
protected  Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, initReader, tokenStream, tokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhitespaceAnalyzer

public WhitespaceAnalyzer(Version matchVersion)
Creates a new WhitespaceAnalyzer

Parameters:
matchVersion - Lucene version to match See above
Method Detail

createComponents

protected Analyzer.TokenStreamComponents createComponents(String fieldName,
                                                          Reader reader)
Specified by:
createComponents in class Analyzer


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.