Interface IPhoneticTokenFilter
A token filter that converts tokens to their phonetic representation using Soundex, Metaphone, and a variety of other algorithms.
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IPhoneticTokenFilter : ITokenFilter
Remarks
Requires the Phonetic Analysis plugin be installed (analysis-phonetic)
Properties
| Edit this page View SourceEncoder
The type of phonetic encoding to use
Declaration
[DataMember(Name = "encoder")]
PhoneticEncoder? Encoder { get; set; }
Property Value
Type | Description |
---|---|
PhoneticEncoder? |
LanguageSet
An array of languages to check. If not specified, then the language will be guessed
Declaration
[DataMember(Name = "languageset")]
IEnumerable<PhoneticLanguage> LanguageSet { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<PhoneticLanguage> |
Remarks
Valid for Beidermorse only
MaxCodeLength
The maximum length of the emitted metaphone token. Defaults to 4
Declaration
[DataMember(Name = "max_code_len")]
int? MaxCodeLength { get; set; }
Property Value
Type | Description |
---|---|
int? |
Remarks
Valid for DoubleMetaphone only
NameType
Whether names are ashkenazi, sephardic, or generic. Defaults to generic
Declaration
[DataMember(Name = "name_type")]
PhoneticNameType? NameType { get; set; }
Property Value
Type | Description |
---|---|
PhoneticNameType? |
Remarks
Valid for Beidermorse only
Replace
The replace parameter (defaults to true) controls if the token processed should be replaced with the encoded one (set it to true), or added (set it to false).
Declaration
[DataMember(Name = "replace")]
bool? Replace { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RuleType
Whether matching should be exact or approximate. Defaults to approximate
Declaration
[DataMember(Name = "rule_type")]
PhoneticRuleType? RuleType { get; set; }
Property Value
Type | Description |
---|---|
PhoneticRuleType? |
Remarks
Valid for Beidermorse only