C# Class Lucene.Net.Analysis.Core.StopAnalyzer

Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
ENGLISH_STOP_WORDS_SET CharArraySet

Public Methods

Method Description
CreateComponents ( string fieldName, TextReader reader ) : Analyzer.TokenStreamComponents

Creates Analyzer.TokenStreamComponents used to tokenize all the text in the provided TextReader.

StopAnalyzer ( LuceneVersion matchVersion ) : System.Collections.Generic

Builds an analyzer which removes words in #ENGLISH_STOP_WORDS_SET.

StopAnalyzer ( LuceneVersion matchVersion, CharArraySet stopWords ) : System.Collections.Generic

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

StopAnalyzer ( LuceneVersion matchVersion, FileInfo stopwordsFile ) : System.Collections.Generic

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

StopAnalyzer ( LuceneVersion matchVersion, TextReader stopwords ) : System.Collections.Generic

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

Private Methods

Method Description
StopAnalyzer ( ) : System.Collections.Generic

Method Details

CreateComponents() public method

Creates Analyzer.TokenStreamComponents used to tokenize all the text in the provided TextReader.
public CreateComponents ( string fieldName, TextReader reader ) : Analyzer.TokenStreamComponents
fieldName string
reader System.IO.TextReader
return Analyzer.TokenStreamComponents

StopAnalyzer() public method

Builds an analyzer which removes words in #ENGLISH_STOP_WORDS_SET.
public StopAnalyzer ( LuceneVersion matchVersion ) : System.Collections.Generic
matchVersion LuceneVersion See above
return System.Collections.Generic

StopAnalyzer() public method

Builds an analyzer with the stop words from the given set.
public StopAnalyzer ( LuceneVersion matchVersion, CharArraySet stopWords ) : System.Collections.Generic
matchVersion LuceneVersion See above
stopWords CharArraySet Set of stop words
return System.Collections.Generic

StopAnalyzer() public method

Builds an analyzer with the stop words from the given file.
public StopAnalyzer ( LuceneVersion matchVersion, FileInfo stopwordsFile ) : System.Collections.Generic
matchVersion LuceneVersion See above
stopwordsFile System.IO.FileInfo File to load stop words from
return System.Collections.Generic

StopAnalyzer() public method

Builds an analyzer with the stop words from the given reader.
public StopAnalyzer ( LuceneVersion matchVersion, TextReader stopwords ) : System.Collections.Generic
matchVersion LuceneVersion See above
stopwords System.IO.TextReader Reader to load stop words from
return System.Collections.Generic

Property Details

ENGLISH_STOP_WORDS_SET public_oe static_oe property

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