# Fuzzy Search Support

The Auto-suggest API includes an optional 'fuzzy' parameter, a boolean value, in its GET request. This parameter enables the implementation of fuzzy search when set to 'true', 'yes', or 1. Fuzzy search facilitates the discovery of approximate matches based on the Levenshtein edit distance. Essentially, the Levenshtein distance denotes the number of insertions, deletions, substitutions, and transpositions required to equalize two strings. For instance, the Levenshtein distance between "ax" and “axe” is 1, reflecting a single deletion necessity.

In the absence of fuzzy search, a query like 'amster' using the Auto-suggest API would return matches like Amsterdam - as the default match phrase algorithm is at play. But when fuzzy search is enabled, you'll receive responses such as 'Amstel'. This results because 'Amstel', as compared to Amsterdam, needs fewer modifications to match 'amster'. Specifically, 'Amstel' only requires replacing 'l' with 'r', whereas Amsterdam requires three character deletions. Therefore, with fuzzy search, 'Amstel' ranks higher than 'Amsterdam' considering it requires fewer alterations to match the query 'amster'.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.altum.ai/english/property-data/auto-suggest-api/fuzzy-search-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
