# Keyword Exceptions

![](/files/-MWF7Yjs7lNn4OouU4ID)

### Keyword exceptions - replace anywhere

Keywords specified in this option are replaced in order within the search phrase with an empty string - mathing anywhere within the search string

#### Example

Defining the following keyword exceptions:

`A123, B456, 999`

..and searching the phrase: "*A**A123*** ***A123** 88**999**CC **999** B**B456**7" ..*&#x77;ill result in a search for: \
"*AA 88CC B7 "*

### Keyword exceptions - replace *whole words only*

Keywords specified in this option are replaced in order within the search phrase with an empty string - mathing only whole words

#### Example

Defining the following keyword exceptions:

`A123, B456, 999`

..and searching the phrase: "*AA123 **A123** 88999CC **999** BB4567" ..*&#x77;ill result in a search for: \
"*AA123 88999CC BB4567"*


---

# 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.ajaxsearchlite.com/advanced-options/keyword-exceptions.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.
