I am creating a search function in PHP/mySQL.
I need to be able to search for several keywords in several fields, and then rank the results by how many keywords match, and where the keywords match (for example, it should rank higher for keywords appearing in the post_title when compared to the post_content, all other things being equal.
I then need it to fall back onto ascending post date, all other things being equal.
Ideally, I could do this in the mySQL query. What methods are available to me?