SearchModelFactory.StemmerOverrideTokenFilter Method

Definition

Provides the ability to override other stemming filters with custom dictionary-based stemming. Any dictionary-stemmed terms will be marked as keywords so that they will not be stemmed with stemmers down the chain. Must be placed before any stemming filters. This token filter is implemented using Apache Lucene. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilter.html.

public static Azure.Search.Documents.Indexes.Models.StemmerOverrideTokenFilter StemmerOverrideTokenFilter(string name = default, System.Collections.Generic.IEnumerable<string> rules = default);
static member StemmerOverrideTokenFilter : string * seq<string> -> Azure.Search.Documents.Indexes.Models.StemmerOverrideTokenFilter
Public Shared Function StemmerOverrideTokenFilter (Optional name As String = Nothing, Optional rules As IEnumerable(Of String) = Nothing) As StemmerOverrideTokenFilter

Parameters

name
String

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.

rules
IEnumerable<String>

A list of stemming rules in the following format: "word => stem", for example: "ran => run".

Returns

A new StemmerOverrideTokenFilter instance for mocking.

Applies to