Ettore Moretti - 2014-11-06 10:27:59 -
In reply to message 1 from danidani
Hello, catching the error is due to the lack of db "searchdb."
The class can implement a search engine, drawing on data from several sources, these sources can be configured through the file "SearchConfig.php", then you should edit this file to suit your needs.
As you can see in the index.php file search examples are commented:
$ out = Search :: getDBSearch (preg_replace ("/ [^ 0-9a-z] /", "", $ _ POST ['SearchKey']));
// $ out = Search :: getXMLSearch (preg_replace ("/ [^ 0-9a-zA-Z] /", "", $ _ POST ['SearchKey']));
// $ out = Search :: getINISearch (preg_replace ("/ [^ 0-9a-z] /", "", $ _ POST ['SearchKey']));
// $ out = Search :: getFLATSearch (preg_replace ("/ [^ 0-9a-z] /", "", $ _ POST ['SearchKey']));
After editing the configuration file using the static method of the class Search you are interested.
I hope I have answered your questions, if not let me know.
Regards Hector Moretti