LengthTokenFilter Class

Removes words that are too long or too short. This token filter is implemented using Apache Lucene.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.search.documents.indexes._generated.models._models_py3.TokenFilter
LengthTokenFilter

Constructor

LengthTokenFilter(*, name: str, min_length: Optional[int] = 0, max_length: Optional[int] = 300, **kwargs)

Parameters

odata_type
str
Required

Required. Identifies the concrete type of the token filter.Constant filled by server.

name
str
Required

Required. 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.

min_length
int
Required

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

max_length
int
Required

The maximum length in characters. Default and maximum is 300.