diff options
Diffstat (limited to 'vespalib/src/vespa/vespalib/fuzzy/fuzzy_matching_algorithm.cpp')
-rw-r--r-- | vespalib/src/vespa/vespalib/fuzzy/fuzzy_matching_algorithm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/fuzzy/fuzzy_matching_algorithm.cpp b/vespalib/src/vespa/vespalib/fuzzy/fuzzy_matching_algorithm.cpp index 826b0beffd6..d87afef1fbe 100644 --- a/vespalib/src/vespa/vespalib/fuzzy/fuzzy_matching_algorithm.cpp +++ b/vespalib/src/vespa/vespalib/fuzzy/fuzzy_matching_algorithm.cpp @@ -9,6 +9,7 @@ namespace { const vespalib::string brute_force = "brute_force"; const vespalib::string dfa_implicit = "dfa_implicit"; const vespalib::string dfa_explicit = "dfa_explicit"; +const vespalib::string dfa_table = "dfa_table"; } @@ -22,6 +23,8 @@ to_string(FuzzyMatchingAlgorithm algo) return dfa_implicit; case FuzzyMatchingAlgorithm::DfaExplicit: return dfa_explicit; + case FuzzyMatchingAlgorithm::DfaTable: + return dfa_table; default: return ""; } @@ -37,6 +40,8 @@ fuzzy_matching_algorithm_from_string(const vespalib::string& algo, return FuzzyMatchingAlgorithm::DfaImplicit; } else if (algo == dfa_explicit) { return FuzzyMatchingAlgorithm::DfaExplicit; + } else if (algo == dfa_table) { + return FuzzyMatchingAlgorithm::DfaTable; } return default_algo; } |