StopwordsTokenFilter Class

Definition

Removes stop words from a token stream. This token filter is implemented using Apache Lucene.

[Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.StopwordsTokenFilter")]
public class StopwordsTokenFilter : Microsoft.Azure.Search.Models.TokenFilter
type StopwordsTokenFilter = class
    inherit TokenFilter
Public Class StopwordsTokenFilter
Inherits TokenFilter
Inheritance
StopwordsTokenFilter
Attributes

Constructors

StopwordsTokenFilter()

Initializes a new instance of the StopwordsTokenFilter class.

StopwordsTokenFilter(String, IList<String>, Nullable<StopwordsList>, Nullable<Boolean>, Nullable<Boolean>)

Initializes a new instance of the StopwordsTokenFilter class.

Properties

IgnoreCase

Gets or sets a value indicating whether to ignore case. If true, all words are converted to lower case first. Default is false.

Name

Gets or sets the name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

(Inherited from TokenFilter)
RemoveTrailingStopWords

Gets or sets a value indicating whether to ignore the last search term if it's a stop word. Default is true.

Stopwords

Gets or sets the list of stopwords. This property and the stopwords list property cannot both be set.

StopwordsList

Gets or sets a predefined list of stopwords to use. This property and the stopwords property cannot both be set. Default is English. Possible values include: 'arabic', 'armenian', 'basque', 'brazilian', 'bulgarian', 'catalan', 'czech', 'danish', 'dutch', 'english', 'finnish', 'french', 'galician', 'german', 'greek', 'hindi', 'hungarian', 'indonesian', 'irish', 'italian', 'latvian', 'norwegian', 'persian', 'portuguese', 'romanian', 'russian', 'sorani', 'spanish', 'swedish', 'thai', 'turkish'

Methods

Validate()

Validate the object.

Applies to