StandardAnalyzer Class
is the essential class characterized in Lucene Analyzer library. It is especially particular for flipping StandardTokenizer with StandardFilter, LowerCaseFilter, and StopFilter, utilizing a rundown of English stop words.This analyzer is the most sophisticated one as it can go for taking care of fields like email address, names, numbers and so forth. Following are the declaration of the StandardAnalyzer class.
[java]
public final class StandardAnalyzer
extends StopwordAnalyzerBase
[/java]
Methods | Description |
---|---|
void setMaxTokenLength(int length) | To set the token length. |
protected Reusable Analyzer Base. Token Stream Components create Components(String fieldName, Reader reader) | To create ReusableAnalyzerBase. |
Constructors | Description |
---|---|
StandardAnalyzer(Version matchVersion, Set stopWords) | To build an analyzer by using stop words. |
StandardAnalyzer(Version matchVersion) | To build an analyzer by using stop words. |
StandardAnalyzer(Version matchVersion, Reader stopwords) | To build an analyzer by using stop words from the given reader. |