# Exact Matches vs Fuzzy Matches

`General Options -> Logic & Behavior`

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

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FDQ13KyjgpEBw79Tw6rhL%2Fimage.png?alt=media\&token=b288cfa8-7054-459e-9f47-3d017b27aba8)

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

![](https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L9jkFgNo4lpUof35gvS%2F-M2ck1v53LOltEDh4clx%2F-M2d5G5S0vLWRjT2BrWN%2Fimage.png?alt=media\&token=7e648184-8244-4d94-8ebc-17fc5c64388b)

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