Class LengthTokenFilter
java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.LengthTokenFilter
Removes words that are too long or too short. This token filter is
implemented using Apache Lucene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the maxLength property: The maximum length in characters.Get the minLength property: The minimum length in characters.setMaxLength
(Integer maxLength) Set the maxLength property: The maximum length in characters.setMinLength
(Integer minLength) Set the minLength property: The minimum length in characters.Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
Constructor Details
-
LengthTokenFilter
Constructor ofLengthTokenFilter
.- Parameters:
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.
-
-
Method Details
-
getMinLength
Get the minLength property: The minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of max.- Returns:
- the minLength value.
-
setMinLength
Set the minLength property: The minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of max.- Parameters:
minLength
- the minLength value to set.- Returns:
- the LengthTokenFilter object itself.
-
getMaxLength
Get the maxLength property: The maximum length in characters. Default and maximum is 300.- Returns:
- the maxLength value.
-
setMaxLength
Set the maxLength property: The maximum length in characters. Default and maximum is 300.- Parameters:
maxLength
- the maxLength value to set.- Returns:
- the LengthTokenFilter object itself.
-