I'm sure this question has been asked at least 1000 times, but please hear me out.
I have written a PHP script for MySQL which is used to search through books which are for sale on my book exchange site. I used this tutorial to help me write a FULLTEXT search script, and it works great, for the most part. There are two real big issues that have me and some of my users cringing:
- If I search for a particular merchant by name, say,
Steve Miller
the script will return all people with the name ofSteve Miller
, first name ofSteve
, and last name ofMiller
. As you can imagine, the script returns quite a few bogus results. It gets even worse with common words in book titles, such asof
orthe
, but it doesn't return all books containing these words. - I have an auto-suggest feature which can only suggest titles when you have entered entire words. For example searching for
The Unive
can't suggest anything, whileThe Universe
can suggestThe Universe Next Door
.
Question: Are there any well established scripts or frameworks which allow me to search withing multiple relations in a MySQL database? I can't use something like Google Custom Search, since I am searching though particular relations and foreign key relationships in a database, not the whole site.
Thank you for your time.