SearchModelFactory.NGramTokenFilter 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.
Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene.
public static Azure.Search.Documents.Indexes.Models.NGramTokenFilter NGramTokenFilter(string name = default, int? minGram = default, int? maxGram = default);
static member NGramTokenFilter : string * Nullable<int> * Nullable<int> -> Azure.Search.Documents.Indexes.Models.NGramTokenFilter
Public Shared Function NGramTokenFilter (Optional name As String = Nothing, Optional minGram As Nullable(Of Integer) = Nothing, Optional maxGram As Nullable(Of Integer) = Nothing) As NGramTokenFilter
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.
The minimum n-gram length. Default is 1. Must be less than the value of maxGram.
Returns
A new NGramTokenFilter instance for mocking.