Share via


LengthTokenFilter Class

Definition

Removes words that are too long or too short. This token filter is implemented using Apache Lucene. http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html

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

Constructors

LengthTokenFilter()

Initializes a new instance of the LengthTokenFilter class.

LengthTokenFilter(String, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the LengthTokenFilter class.

Properties

Max

Gets or sets the maximum length in characters. Default and maximum is 300.

Min

Gets or sets the minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of max.

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