com.lucene.analysis
Class Analyzer
java.lang.Object
|
+--com.lucene.analysis.Analyzer
- Direct Known Subclasses:
- SimpleAnalyzer, StandardAnalyzer, StopAnalyzer
- public abstract class Analyzer
- extends Object
An Analyzer builds TokenStreams, which analyze text. It thus represents a
policy for extracting index terms from text.
Typical implementations first build a Tokenizer, which breaks the stream of
characters from the Reader into raw Tokens. One or more TokenFilters may
then be applied to the output of the Tokenizer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Analyzer
public Analyzer()
tokenStream
public abstract TokenStream tokenStream(Reader reader)
- Creates a TokenStream which tokenizes all the text in the provided
Reader.