> 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/relevance-options.md).

# Relevance Options

Relevance modifiers change the importance of fields, based on keyword matches.

{% hint style="info" %}
The relevance formula is different for every configuration, it depends on a lot of variables. The reasons on how and why it works a certain way is out of the scope of this documentation.
{% endhint %}

## Relevance weight values

Depending if you are using the Regular (default) or Index [table engine](/index-table.md), the corresponding panel will be visible under the Relevance Options.

{% hint style="info" %}
Using the [index table](/index-table.md) engine is beneficial for most setups, as the **keyword occurence count** (how many times the phrase was found in specific field) is also considered. This is a huge advanted agains the regular engine, where this is not possible.
{% endhint %}

![Relevance for the regular engine](/files/-M2i6kybdX4naySzcW9Z)

![](/files/-M2i6v-Tcgu2nUeMpRYy)

### Exact match vs. Non-exact match relevance

Exact match relevance is calculated without examining each word in the phrase, only checking the exact phrase for occurences. Non-exact match relevance is the opposite, where each word is checked separately.

### How should you choose the relevance values?

For most cases the default configuration is perfectly fine. Please check the table below for different cases.

#### Category, tag or any other taxonomy match should be the most relevant

| Engine             | Title weight | Content weight | Excerpt weight | Terms weight | Custom f. weight | Author weight |
| ------------------ | ------------ | -------------- | -------------- | ------------ | ---------------- | ------------- |
| Regular engine     | <=5          | <=5            | <=5            | **10**       | <=2              | N/A           |
| Index Table engine | <=20         | <=20           | <=10           | >=**200**    | <=10             | <=10          |

#### A custom field value should be the most important

| Engine             | Title weight | Content weight | Excerpt weight | Terms weight | Custom f. weight | Author weight |
| ------------------ | ------------ | -------------- | -------------- | ------------ | ---------------- | ------------- |
| Regular engine     | <=5          | <=5            | <=5            | <=5          | **10**           | N/A           |
| Index Table engine | <=20         | <=20           | <=10           | <=10         | **>=200**        | <=10          |

If more than one field is much more important, then make sure to set them both to higher values.
