adjust edit distance in matcher usage docs too

This commit is contained in:
svlandeg 2023-02-23 09:28:51 +01:00
parent af6d11c9d7
commit 0f0f5db3b5
2 changed files with 5 additions and 5 deletions

View File

@ -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 3 edits)
# Match lowercase with fuzzy matching (allows 2 edits by default)
pattern = [{"LOWER": {"FUZZY": "definitely"}}]
# Match custom attribute values with fuzzy matching (allows 3 edits)
# Match custom attribute values with fuzzy matching (allows 2 edits by default)
pattern = [{"_": {"country": {"FUZZY": "Kyrgyzstan"}}}]
# Match with exact Levenshtein edit distance limits (allows 4 edits)

View File

@ -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 up to 2 edits)
# Match lowercase with fuzzy matching (allows 2 edits by default)
pattern = [{"LOWER": {"FUZZY": "definitely"}}]
# Match custom attribute values with fuzzy matching (allows up to 2 edits)
# Match custom attribute values with fuzzy matching (allows 2 edits by default)
pattern = [{"_": {"country": {"FUZZY": "Kyrgyzstan"}}}]
# Match with exact Levenshtein edit distance limits (allows up to 4 edits)
# Match with exact Levenshtein edit distance limits (allows 4 edits)
pattern = [{"_": {"country": {"FUZZY4": "Kyrgyzstan"}}}]
```