# Exact Matches vs Fuzzy Matches

`General Options -> Logic & Behavior`

By default the plugin uses fuzzy matching across the selected fields.

![](/files/fM3MDH3ePyu37BgJK3qM)

When exact matching is enabled, the plugin no longer considers each keyword as separate, but the whole phrase is a single keyword.

### Match location

| Post Title           | Phrase       | Match "Anywhere" | Match "Starting with" | Match "Ending With" | Complete Match |
| -------------------- | ------------ | ---------------- | --------------------- | ------------------- | -------------- |
| **Hello** world!     | hello        | YES              | YES                   | NO                  | NO             |
| H**ello** world!     | ello         | YES              | NO                    | NO                  | NO             |
| Hello **world!**     | world!       | YES              | NO                    | **YES**             | NO             |
| Hello **world**!     | world        | **YES**          | NO                    | **NO**              | NO             |
| **Hello** **world**! | Hello world  | **YES**          | **YES**               | **NO**              | NO             |
| **Hello world!**     | hello world! | **YES**          | **YES**               | **YES**             | **YES**        |

### Secondary logic matching

![](/files/-M2d5G5S0vLWRjT2BrWN)

When enabled, and there are not enough matches to fullfill the [limit](broken://pages/-L9jkL0axQfFUrEZ1mqf) set to the results, the plugin will trigger a fuzzy search with the [secondary keyword logic](/behavior/search-logic.md) set - to fill the remaning result places.


---

# 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://documentation.ajaxsearchpro.com/behavior/search-logic/exact-matches-vs-fuzzy-matches.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.
