LimitTokenFilter Class

Definition

Limits the number of tokens while indexing. This token filter is implemented using Apache Lucene.

[Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.LimitTokenFilter")]
public class LimitTokenFilter : Microsoft.Azure.Search.Models.TokenFilter
type LimitTokenFilter = class
    inherit TokenFilter
Public Class LimitTokenFilter
Inherits TokenFilter
Inheritance
LimitTokenFilter
Attributes

Constructors

LimitTokenFilter()

Initializes a new instance of the LimitTokenFilter class.

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

Initializes a new instance of the LimitTokenFilter class.

Properties

ConsumeAllTokens

Gets or sets a value indicating whether all tokens from the input must be consumed even if maxTokenCount is reached. Default is false.

MaxTokenCount

Gets or sets the maximum number of tokens to produce. Default is 1.

Name

Gets or sets 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.

(Inherited from TokenFilter)

Methods

Validate()

Validate the object.

Applies to