Class TruncateTokenFilter
java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.TruncateTokenFilter
Truncates the terms to a specific length. This token filter is implemented
using Apache Lucene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the length property: The length at which terms will be truncated.Set the length property: The length at which terms will be truncated.Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
Constructor Details
-
TruncateTokenFilter
Constructor ofTruncateTokenFilter
.- 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
-
getLength
Get the length property: The length at which terms will be truncated. Default and maximum is 300.- Returns:
- the length value.
-
setLength
Set the length property: The length at which terms will be truncated. Default and maximum is 300.- Parameters:
length
- the length value to set.- Returns:
- the TruncateTokenFilter object itself.
-