The original query looks like this (MySQL): select * from books where title like "%text%" or description like "%text%" order by date
Would it be possible to rewrite it (without unions or procedures), so that result will look like this: - list of books where title matches query ordered by date, followed by: - list of books where description matches query ordered by date
So basically just give a higher priority to matching titles over descriptions.
Thanks.