Share via


LimitTokenFilter Class

Definition

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

public class LimitTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
type LimitTokenFilter = class
    inherit TokenFilter
Public Class LimitTokenFilter
Inherits TokenFilter
Inheritance
LimitTokenFilter

Constructors

LimitTokenFilter(String)

Initializes a new instance of LimitTokenFilter.

Properties

ConsumeAllTokens

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

MaxTokenCount

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

Name

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)

Applies to