Table of Contents

Method StopWords

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

StopWords(AnalyzerLanguage)

Drops the common words of language (Tantivy's built-in lists). Expects lowercase tokens. Not every language has a list (see AnalyzerLanguage); a missing one fails when the schema is used to create an index.

public Analyzer StopWords(AnalyzerLanguage language)

Parameters

language AnalyzerLanguage

Returns

Analyzer

StopWords(IEnumerable<string>)

Drops tokens equal to any of words (exact, case-sensitive match).

public Analyzer StopWords(IEnumerable<string> words)

Parameters

words IEnumerable<string>

Returns

Analyzer