Class LimitTokenFilter
Limits the number of tokens while indexing. This token filter is implemented using Apache Lucene.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class LimitTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
Constructors
LimitTokenFilter(String)
Initializes a new instance of LimitTokenFilter.
Declaration
public LimitTokenFilter (string name);
Parameters
System.String
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. |
Exceptions
System.ArgumentNullException
|
Properties
ConsumeAllTokens
A value indicating whether all tokens from the input must be consumed even if maxTokenCount is reached. Default is false.
Declaration
public Nullable<bool> ConsumeAllTokens { get; set; }
Property Value
System.Nullable<System.Boolean>
|
MaxTokenCount
The maximum number of tokens to produce. Default is 1.
Declaration
public Nullable<int> MaxTokenCount { get; set; }
Property Value
System.Nullable<System.Int32>
|