I'm using php with mysql
Hello I have a couple of tables with information about books.
One table is like this
id, bookTitle, BookText
The other is like this
id, bookid, amountofsales
I would like to search the text of the book, and the book title from one table, but also be able to include amountofsales from the other table to give the results a possible bias.
So for instance if book 1 had 50,000 sales, and matched the search "oil" but book 2 had 23,000 sales but also matched "oil" book 1 would be slightly more relevant.
However this should only give a small bias because if one matches oil more then that should still be the top result.
Any ideas?