Hello,
I'm a webmaster for a college newspaper and I'm implementing an article
search. I'm running PHP with a MySQL database to store the weekly
stories. Does anyone know of an article that could offer good search
theory.
My top priority right now is multiple search terms and relevance
sorting based on how many word hits are returned.
It's easy to search for a single word or term in a body of text. I can
just use the MySQL "WHERE `body` LIKE 'term'" query. But what about
searching for two terms, or searching for the most relevant document
based on how many hits of the term are found.
I imagine I would split up the search query and run multiple "LIKE
'term'" queries to find multiple hits. I would have to pick some
arbitrary number of searches because searching each article 50 times is
not an option.
Seems like there are a lot of choices in how to set up a good search
system and I'd like to get started on the right foot to reduce my work
load.
-Aaron
I'm a webmaster for a college newspaper and I'm implementing an article
search. I'm running PHP with a MySQL database to store the weekly
stories. Does anyone know of an article that could offer good search
theory.
My top priority right now is multiple search terms and relevance
sorting based on how many word hits are returned.
It's easy to search for a single word or term in a body of text. I can
just use the MySQL "WHERE `body` LIKE 'term'" query. But what about
searching for two terms, or searching for the most relevant document
based on how many hits of the term are found.
I imagine I would split up the search query and run multiple "LIKE
'term'" queries to find multiple hits. I would have to pick some
arbitrary number of searches because searching each article 50 times is
not an option.
Seems like there are a lot of choices in how to set up a good search
system and I'd like to get started on the right foot to reduce my work
load.
-Aaron
Comment