# 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.


---

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