SearchModelFactory.LengthTokenFilter Method

Definition

Removes words that are too long or too short. This token filter is implemented using Apache Lucene.

public static Azure.Search.Documents.Indexes.Models.LengthTokenFilter LengthTokenFilter(string name = default, int? minLength = default, int? maxLength = default);
static member LengthTokenFilter : string * Nullable<int> * Nullable<int> -> Azure.Search.Documents.Indexes.Models.LengthTokenFilter
Public Shared Function LengthTokenFilter (Optional name As String = Nothing, Optional minLength As Nullable(Of Integer) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing) As LengthTokenFilter

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.

minLength
Nullable<Int32>

The minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of max.

maxLength
Nullable<Int32>

The maximum length in characters. Default and maximum is 300.

Returns

A new LengthTokenFilter instance for mocking.

Applies to