Class PhoneticTokenFilter
java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.PhoneticTokenFilter
Create tokens for phonetic matches. This token filter is implemented using
Apache Lucene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the replaceOriginalTokens property: A value indicating whether encoded tokens should replace original tokens.Get the encoder property: The phonetic encoder to use.setEncoder
(PhoneticEncoder encoder) Set the encoder property: The phonetic encoder to use.setOriginalTokensReplaced
(Boolean originalTokensReplaced) Set the replaceOriginalTokens property: A value indicating whether encoded tokens should replace original tokens.Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
Constructor Details
-
PhoneticTokenFilter
Constructor ofPhoneticTokenFilter
.- 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
-
getEncoder
Get the encoder property: The phonetic encoder to use. Default is "metaphone". Possible values include: 'Metaphone', 'DoubleMetaphone', 'Soundex', 'RefinedSoundex', 'Caverphone1', 'Caverphone2', 'Cologne', 'Nysiis', 'KoelnerPhonetik', 'HaasePhonetik', 'BeiderMorse'.- Returns:
- the encoder value.
-
setEncoder
Set the encoder property: The phonetic encoder to use. Default is "metaphone". Possible values include: 'Metaphone', 'DoubleMetaphone', 'Soundex', 'RefinedSoundex', 'Caverphone1', 'Caverphone2', 'Cologne', 'Nysiis', 'KoelnerPhonetik', 'HaasePhonetik', 'BeiderMorse'.- Parameters:
encoder
- the encoder value to set.- Returns:
- the PhoneticTokenFilter object itself.
-
areOriginalTokensReplaced
Get the replaceOriginalTokens property: A value indicating whether encoded tokens should replace original tokens. If false, encoded tokens are added as synonyms. Default is true.- Returns:
- the replaceOriginalTokens value.
-
setOriginalTokensReplaced
Set the replaceOriginalTokens property: A value indicating whether encoded tokens should replace original tokens. If false, encoded tokens are added as synonyms. Default is true.- Parameters:
originalTokensReplaced
- the replaceOriginalTokens value to set.- Returns:
- the PhoneticTokenFilter object itself.
-