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
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

Свойство Type Description
STOP_WORDS_SET CharArraySet

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
createComponents ( string fieldName, Reader reader ) : TokenStreamComponents

Method Details

ClassicAnalyzer() public méthode

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}
Résultat Lucene.Net.Analysis.Core

ClassicAnalyzer() public méthode

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
Résultat Lucene.Net.Analysis.Core

ClassicAnalyzer() public méthode

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
Résultat Lucene.Net.Analysis.Core

createComponents() protected méthode

protected createComponents ( string fieldName, Reader reader ) : TokenStreamComponents
fieldName string
reader Reader
Résultat 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
Résultat CharArraySet