C# Class org.apache.lucene.analysis.standard.ClassicAnalyzer

Filters ClassicTokenizer with ClassicFilter, {@link LowerCaseFilter} and StopFilter, using a list of English stop words.

You must specify the required Version compatibility when creating ClassicAnalyzer:

ClassicAnalyzer was named StandardAnalyzer in Lucene versions prior to 3.1. As of 3.1, StandardAnalyzer implements Unicode text segmentation, as specified by UAX#29.

Inheritance: Lucene.Net.Analysis.Util.StopwordAnalyzerBase
ファイルを表示 Open project: paulirwin/lucene.net Class Usage Examples

Public Properties

Property Type Description
STOP_WORDS_SET CharArraySet

Public Methods

Method Description
ClassicAnalyzer ( Version matchVersion ) : Lucene.Net.Analysis.Core

Builds an analyzer with the default stop words ({@link #STOP_WORDS_SET}).

ClassicAnalyzer ( Version matchVersion, CharArraySet stopWords ) : Lucene.Net.Analysis.Core

Builds an analyzer with the given stop words.

ClassicAnalyzer ( Version matchVersion, Reader stopwords ) : Lucene.Net.Analysis.Core

Builds an analyzer with the stop words from the given reader.

Protected Methods

Method Description
createComponents ( string fieldName, Reader reader ) : TokenStreamComponents

Method Details

ClassicAnalyzer() public method

Builds an analyzer with the default stop words ({@link #STOP_WORDS_SET}).
public ClassicAnalyzer ( Version matchVersion ) : Lucene.Net.Analysis.Core
matchVersion Version Lucene version to match See {@link /// above}
return Lucene.Net.Analysis.Core

ClassicAnalyzer() public method

Builds an analyzer with the given stop words.
public ClassicAnalyzer ( Version matchVersion, CharArraySet stopWords ) : Lucene.Net.Analysis.Core
matchVersion Version Lucene version to match See {@link /// above}
stopWords CharArraySet stop words
return Lucene.Net.Analysis.Core

ClassicAnalyzer() public method

Builds an analyzer with the stop words from the given reader.
public ClassicAnalyzer ( Version matchVersion, Reader stopwords ) : Lucene.Net.Analysis.Core
matchVersion Version Lucene version to match See {@link /// above}
stopwords Reader Reader to read stop words from
return Lucene.Net.Analysis.Core

createComponents() protected method

protected createComponents ( string fieldName, Reader reader ) : TokenStreamComponents
fieldName string
reader Reader
return TokenStreamComponents

Property Details

STOP_WORDS_SET public_oe static_oe property

An unmodifiable set containing some common English words that are usually not useful for searching.
public static CharArraySet STOP_WORDS_SET
return CharArraySet