From 4539fbae176295fd271855cdccb25820eef1ca96 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 27 Feb 2023 09:48:36 +0100 Subject: [PATCH] Revert "Fix FUZZY operator definition (#12318)" (#12336) This reverts commit daedc45d050b15be8c5422aadff7b652439a562d. The default length depends on the length of the pattern string and was correct for this example. --- website/docs/usage/rule-based-matching.mdx | 4 ++-- website/docs/usage/v3-5.mdx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/usage/rule-based-matching.mdx b/website/docs/usage/rule-based-matching.mdx index bad049479..628c2953f 100644 --- a/website/docs/usage/rule-based-matching.mdx +++ b/website/docs/usage/rule-based-matching.mdx @@ -384,10 +384,10 @@ the more specific attributes `FUZZY1`..`FUZZY9` you can specify the maximum allowed edit distance directly. ```python -# Match lowercase with fuzzy matching (allows 2 edits by default) +# Match lowercase with fuzzy matching (allows 3 edits) pattern = [{"LOWER": {"FUZZY": "definitely"}}] -# Match custom attribute values with fuzzy matching (allows 2 edits by default) +# Match custom attribute values with fuzzy matching (allows 3 edits) pattern = [{"_": {"country": {"FUZZY": "Kyrgyzstan"}}}] # Match with exact Levenshtein edit distance limits (allows 4 edits) diff --git a/website/docs/usage/v3-5.mdx b/website/docs/usage/v3-5.mdx index 54c976fe5..3ca64f8a2 100644 --- a/website/docs/usage/v3-5.mdx +++ b/website/docs/usage/v3-5.mdx @@ -70,13 +70,13 @@ distance of 2 and up to 30% of the pattern string length. `FUZZY1`..`FUZZY9` can be used to specify the exact number of allowed edits. ```python -# Match lowercase with fuzzy matching (allows 2 edits by default) +# Match lowercase with fuzzy matching (allows up to 3 edits) pattern = [{"LOWER": {"FUZZY": "definitely"}}] -# Match custom attribute values with fuzzy matching (allows 2 edits by default) +# Match custom attribute values with fuzzy matching (allows up to 3 edits) pattern = [{"_": {"country": {"FUZZY": "Kyrgyzstan"}}}] -# Match with exact Levenshtein edit distance limits (allows 4 edits) +# Match with exact Levenshtein edit distance limits (allows up to 4 edits) pattern = [{"_": {"country": {"FUZZY4": "Kyrgyzstan"}}}] ```