I want to search in a table in the fields title and text via search query and the rows with the most matches win. My table pages looks like this:
------------------------------------------
| id | title | text | status |
------------------------------------------
| 1 | test test | test xx | 200 |
| 2 | nothing | nothing | 200 |
| 3 | test test | test test | 200 |
| 4 | abcefgh | ijkl test | 200 |
| 5 | test | test abc | 200 |
------------------------------------------
The expected result would look like this (selecting id, title, text via search query test and the limit 3):
---------------------------------
| id | title | text |
---------------------------------
| 3 | test test | test test |
| 1 | test test | test xx |
| 5 | test | test abc |
---------------------------------
I would really appreciate your help as I could not find a solution for a longer time now. Thanks in advance!