Edit
by olatunji - 9 years ago (2015-05-12)
Search engine for different file types
| I need a search engine that is well explained and searches for different file types, including videos, audio and text. |
Ask clarification
1 Recommendation
This class can search data on MySQL, XML, INI or flat files.
It provides separate functions to search different sources of data according to parameters defined in a separate configuration class.
For MySQL database tables, it can search a given MySQL database using PDO to execute a query on a given table matching records that have the search keywords.
For XML search it reads a given XML document and searches for given elements with the search keywords.
For INI files, it parses the INI file into an array of options and values, and finds the search keywords in the array.
For flat files, it reads the whole file into a string and finds the search keywords in the string.
For database, INI and flat files, the matching of the search keywords can be by equality, contained words using LIKE, or similarity with the LEVENSHTEIN or SOUNDEX functions.
| by Ettore Moretti package author 60 - 9 years ago (2015-05-12) Comment
I did something like that, whit this class you can search data on MySQL, XML, INI or flat files.
With some changes, you may adapt it to search the file system, or create a file (like a sitemap) representing the rigging of the file system of your interest. |