SearchModelFactory.TruncateTokenFilter(String, Nullable<Int32>) Method

Definition

Truncates the terms to a specific length. This token filter is implemented using Apache Lucene.

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

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.

length
Nullable<Int32>

The length at which terms will be truncated. Default and maximum is 300.

Returns

A new TruncateTokenFilter instance for mocking.

Applies to