> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchpro.com/advanced-options/keyword-exception-and-exclusions.md).

# Keyword Exception & Exclusions

Excluding keywords or parts of keywords from the search query

Keyword exceptions are applied to the search phrase. Matches are replaced with an empty string (removed).

Location: **Advanced Options -> Keyword exceptions** panel

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FjS6GTGSJjqaqJ4zuADbr%2Fimage.png?alt=media&amp;token=8cbcd8d4-2af2-4d34-bc98-462a019068f1" alt="" width="375"><figcaption><p>Keyword Exceptions options</p></figcaption></figure>

### Partial (fuzzy) keyword exceptions

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FQp9vBwK9gk2sBF5nFKpF%2Fimage.png?alt=media&amp;token=43628da9-ec2a-4695-b043-6f972faa3fd4" alt="" width="375"><figcaption></figcaption></figure>

These keywords are removed **anywhere** from the search phrase - including from start, end and middle of the matched words.

#### Example

*Keyword exception - replace anyhwere* is set to: `word1, word2, word3`

* User types in: *"test the**word1 word2** test**word3**tes&#x74;**"***
* Search query becomes: "*test the testtest"*

Notice how every single partial and full occurence of the keywords are removed from the search phrase.

### Full (whole word) keyword exceptions

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F0kyW1dele9v87UdVMWne%2Fimage.png?alt=media&amp;token=67f73c7b-d1db-46fd-9dc2-a6584d91583f" alt="" width="375"><figcaption><p>Full keyword exceptions</p></figcaption></figure>

These keywords are replaced only if the **full word** is matched within word boundaries. This is best to used with common words like: *in, at, a, the* etc..

#### Example

*Keyword exception - replace anyhwere* is set to: `in, the, area`

* User types in: *"mechanic **in the** paris **area"***
* Search query becomes: "*mechanic paris"*

Notice how the search query became much simpler allowing broader, yet more accurate matches by ignoring certain common keywords.
