LimitTokenFilter Constructors

Definition

Overloads

LimitTokenFilter()

Initializes a new instance of the LimitTokenFilter class.

LimitTokenFilter(String, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the LimitTokenFilter class.

LimitTokenFilter()

Source:
LimitTokenFilter.cs

Initializes a new instance of the LimitTokenFilter class.

public LimitTokenFilter ();
Public Sub New ()

Applies to

LimitTokenFilter(String, Nullable<Int32>, Nullable<Boolean>)

Source:
LimitTokenFilter.cs

Initializes a new instance of the LimitTokenFilter class.

public LimitTokenFilter (string name, int? maxTokenCount = default, bool? consumeAllTokens = default);
new Microsoft.Azure.Search.Models.LimitTokenFilter : string * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Search.Models.LimitTokenFilter
Public Sub New (name As String, Optional maxTokenCount As Nullable(Of Integer) = Nothing, Optional consumeAllTokens As Nullable(Of Boolean) = Nothing)

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.

maxTokenCount
Nullable<Int32>

The maximum number of tokens to produce. Default is 1.

consumeAllTokens
Nullable<Boolean>

A value indicating whether all tokens from the input must be consumed even if maxTokenCount is reached. Default is false.

Applies to