SearchModelFactory.UniqueTokenFilter(String, Nullable<Boolean>) Method

Definition

Filters out tokens with same text as the previous token. This token filter is implemented using Apache Lucene.

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

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.

onlyOnSamePosition
Nullable<Boolean>

A value indicating whether to remove duplicates only at the same position. Default is false.

Returns

A new UniqueTokenFilter instance for mocking.

Applies to