SearchModelFactory.TruncateTokenFilter(String, Nullable<Int32>) 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.
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.
Returns
A new TruncateTokenFilter instance for mocking.