Reply To: Matching Algorithm and Checkbox Selections

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Matching Algorithm and Checkbox Selections Reply To: Matching Algorithm and Checkbox Selections

#7849

Ernest Marcinko
Keymaster

Hi David,

A1:
The regular engine does (can) not count the occurences, that is the main difference between the two.

The index table does consider the occurences multiplied by the weight for each field. Plus there is a non-linear modifier applied for the search term number, in case the either “OR”, “AND” or “AND with exact keyword matches” logic is selected. So it becomes:

[field 1 relevance] x [field 1 occurence count] x [RMOD] + [field 1 relevance] x [field 2 occurence count] x [RMOD] + …

where:

RMOD(c) = 10 – (c x 8); {c = 0 for the first word in the phrase}
..but when RMOD(c) < 1, then RMOD(c) = 1;
..so it's 10, 2, 1, 1 …. meaning that the first phrase relevance is multiplied by 10, second by 2 and the rest by one. This formula might (probably will) change in the future.

A2:
Unfortunately it is not yet possible to memorize the selects after redirecting. I has been requested, so it's definitely coming in one of the upcoming versions 🙂

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)