TruncateTokenFilter Class

Definition

Truncates the terms to a specific length. This token filter is implemented using Apache Lucene.

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

Constructors

TruncateTokenFilter()

Initializes a new instance of the TruncateTokenFilter class.

TruncateTokenFilter(String, Nullable<Int32>)

Initializes a new instance of the TruncateTokenFilter class.

Properties

Length

Gets or sets the length at which terms will be truncated. Default and maximum is 300.

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