In this article I would like to tell you how ZoomSearch which is a easy-to-use and easy-to-configure search engine can be integrated according to your needs. It allows the following:
- Easy to use and install, up and running in minutes;
- No advertising and no annual fees;
- No scripting knowledge or editing required;
- No complicated database setup procedure;
- No external web service required;
- Highly configurable;
- Search static and dynamic web page formats (HTML, PHP, ASP, CF, etc.);
- Search in PDF, DOC, DOCX, PPT, XLS, SWF, JPG, GIF, and many other file types;
- Runs on almost all web servers and hosting plans;
- PHP, Classic ASP, .NET, JavaScript, and CGI support in one package.
Let’s discuss the integration in more detail. Creating a configuration page is quite easy. As it is already created we only have to implement it:
1 2 3 4 5 |
//zoom_search.php public function getContent() { return '<iframe src="' . $this->_path . 'zoom/ZoomIndexer.php" style="width: 100%; position: absolute; height: 100%; border: none;"></iframe>'; } |
The result will be the following:
Further we build up a search page for store visitors:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
//controllers/front/search.php class zoom_searchSearchModuleFrontController extends ModuleFrontController { public function initContent() { $this->context->smarty->assign( array( 'path_search_file' => $this->module->getPathUri() . 'search/search.php', ) ); $this->setTemplate('search.tpl'); } } |
1 2 |
//views/templates/front/search.php <iframe src="{$path_search_file}" style="width: 100%; height: 100%; border: none;"></iframe> |
Here we go with a simple search page that can be stylized in accordance with our needs:
The process of module configuration is not complicated as well.
We switch on the indexing of our website:
The indexing is finished. After that we check how the search is working:
Zoom search allows configuring a search page, list output, searching results in a rather flexible way. This includes list enumeration, quantity of symbols in the search result page description, availability of a direct link, quantity of posts on a page and search among categories (to my opinion, the most essential one). We can divide the website into sections and a user can select search by the whole website or the section which is most interesting for him.