Non-database search function
Posted: Thu Aug 07, 2014 3:29 am
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.
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.