# Relevance Options

Relevance options

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

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.

# Relevance weight values

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

Using the index table 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.

## 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.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8833263,"math_prob":0.9153028,"size":1431,"snap":"2020-45-2020-50","text_gpt3_token_len":338,"char_repetition_ratio":0.1394534,"word_repetition_ratio":0.15384616,"special_character_ratio":0.23969252,"punctuation_ratio":0.08015267,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95538425,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-26T01:16:11Z\",\"WARC-Record-ID\":\"<urn:uuid:c55787e0-7323-4ea6-82d6-88d527bca72e>\",\"Content-Length\":\"336620\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4a031b80-d67f-4fd7-9942-ee89ae1232f5>\",\"WARC-Concurrent-To\":\"<urn:uuid:51723173-4acc-4cd2-b668-23cab5e21bc3>\",\"WARC-IP-Address\":\"104.28.0.219\",\"WARC-Target-URI\":\"https://documentation.ajaxsearchpro.com/relevance-options\",\"WARC-Payload-Digest\":\"sha1:JYELYWSMIJT7IYBQCUV7B5MDDRZOQIDE\",\"WARC-Block-Digest\":\"sha1:TENTWOMPNJLXE5P5576UIHSRCF2NFVVP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107890108.60_warc_CC-MAIN-20201026002022-20201026032022-00575.warc.gz\"}"}