I want to build a search engine. I have no idea how to make one that will search a huge database (100MB +) and display information in the most relevant order (like the search engines do like Lycos, Yahoo, PHP.net [by closest match]) I want it to search entries containing ANY of the words in the search query (so it would display Soccer Championship if someone searched for Championship Soccer). I only have MySQL and PHP on a cluster hosting account.
This is the SQL Table structure dump:
CREATE TABLE dbsearch (
Title varchar(255) default NULL, //SEARCH THIS
URL varchar(255) default NULL,
Description varchar(255) default NULL, //AND THIS
Category varchar(255) default NULL, //AND THIS
E_Mail varchar(255) default NULL,
Status varchar(255) default NULL //DISPLAY ONLY IF THIS IS SET TO 1
)
I dont want to use LIKE because I have more than 3 million entries and holy crap does it ever take a long time. PLEASE HELP ME WITH SAMPLE CODE OF HOW TO DO THIS... THANK YOU SOOO MUCH