Class DoubleMetaphone
Encodes a string into a double metaphone value. This Implementation is based on the algorithm by Lawrence
Philips
.
This class is conditionally thread-safe. The instance field Lucene.Net.Analysis.Phonetic.Language.DoubleMetaphone.maxCodeLen is mutable MaxCodeLen but is not volatile, and accesses are not synchronized. If an instance of the class is shared between threads, the caller needs to ensure that suitable synchronization is used to ensure safe publication of the value between threads, and must not set MaxCodeLen after initial setup.
See Original Article
Inheritance
Assembly: Lucene.Net.Analysis.Phonetic.dll
Syntax
public class DoubleMetaphone : object, IStringEncoder
Constructors
Name | Description |
---|---|
DoubleMetaphone() | Creates an instance of this DoubleMetaphone encoder |
Properties
Name | Description |
---|---|
MaxCodeLen | Gets or Sets the maxCodeLen. |
Methods
Name | Description |
---|---|
CharAt(String, Int32) | Gets the character at index |
Contains(String, Int32, Int32, String[]) | Determines whether |
Encode(String) | Encode the value using DoubleMetaphone. |
GetDoubleMetaphone(String) | Encode a value with Double Metaphone. |
GetDoubleMetaphone(String, Boolean) | Encode a value with Double Metaphone, optionally using the alternate encoding. |
IsDoubleMetaphoneEqual(String, String) | Check if the Double Metaphone values of two |
IsDoubleMetaphoneEqual(String, String, Boolean) | Check if the Double Metaphone values of two |