This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Word pairings > Higher Relevance

#17604
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

The default ‘regular engine’ indeed does not count the relevance of multiple search keywords separately. There are many reasons why, but the main reason is performance. Due to the structure of how these data are stored and how a search query works, calculating relevance during this process is very costly. Adding more keywords will make it exponentially slower.

There is a solution of course, actually I will recommend two possibilities:

1. (simple) Changing the keyword logic
By default the plugin returns anything that matches any of the keywords. This ‘OR’ logic is designed for most use cases, however it can get annoying on larger databases.

On the General Options -> Logics & Behaviour panel, try chaning the primary logic to ‘AND’: https://i.imgur.com/2oJ81H6.png
This will not change the relevance by much, but will affect the final results set greatly. You can try out all the other logics as well, to see if any of them fits your needs.

2. Creating and using the index table engine
To overcome the barriers of the default search query possibilities, there is a custom built database table, that can be filled with contents of your choice. This has a very special structure that makes possible of counting word occurences and calculating a much better relevance. In this case, each and every matched keyword is calculated towards the final relevance.

For more information and guides please read these:
Index table in general
Generating the index table
Enabling the index table

The search logic options in solution 1 will of course work in combination with the Index table engine. I hope this helps!