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.
Non-database search function
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Non-database search function
“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
Re: Non-database search function
Have you looked into Solr?