Non-database search function

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Non-database search function

Post by social_experiment »

I am working on a search script that loops through a set of directories and when finding a file checks the meta tags of the file against the key word / search term. Matching tags means the page is inline with the search and is thus returned in hyperlink format.

My questions:

1. Is this a good idea? I would prefer using a database based search but i want exhaust my current option before moving onto that.
2. What are the pitfalls of this type of search function? An issue that comes to mind is a time, an increase in files will mean an increase in search time.
3. Security risks for this type of search?

Some background information: The client is moving from a Joomla site to a setup; all existing articles are converted to html pages and the Joomla site will eventually be phased out.

TIA for suggestions, comments, critique.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Non-database search function

Post by Celauran »

Have you looked into Solr?
Post Reply