SearchModelFactory.UniqueTokenFilter(String, Nullable<Boolean>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
A value indicating whether to remove duplicates only at the same position. Default is false.
Returns
A new UniqueTokenFilter instance for mocking.