Your web hosting provider needs to support PHP 5.3 or above. The PHP extension mbstring also needs to be installed on your server. The search engine currently supports English only. Other languages may not work.
Select "Edit" > "Site Properties" from the main menu. Select the option "Generate index files from all HTML pages for search engine". When publishing your website, either the whole website or just changed or selected pages, generated HTML files and external files imported to the website with suffix "html" or "htm" will be indexed and the index files together with the text files extracted from the html files will be uploaded to the web server. The index files and the text files will be used by the search engine.
Create a new page or use an existing page for showing the results of the search. Change the extension of the page to ".php". For example, if the name of the page is "search.html". Change it to "search.php".
Open the page. Select "insert" > "PHP Search Form" from the main menu. A search form will be inserted on the page. It is just a normal web form created by inserting a form, a text field and an action button. CSS styles can be applied to them. Do not add extra fields to this form.
You may see the following message as we have not added a "Search Results" element yet. Just press the OK button.
If you have an existing form with just one text field and an action button or an image button, you can convert it to a search form. Select the form on the page like the following. Then select "Insert" > "PHP Search Form" from the main menu.
You will see the following message to confirm that it is converted to a search form successfully.
Select "Insert" > "PHP Search Results" from the main menu. A "Search Results" element will be inserted to the page. The height of element is already set to expand with the search results. So do not place any other elements below it as it will overlap with them. When this element expands vertically, it will push down the elements in the footer. Please note that you can only has one page with this element in your website.
You can place a link to this search page on the navigation bar so that your visitors can find it. Alternatively, you can add a search form to all your pages so that searching can be performed on every page. To do this, it is best to add the search form to a template page which is used by all your pages. Open the template page and select "Insert" > "PHP Search Form" from the main menu. Move it to an appropriate location on the page such as top right corner. The search form on the page with the "Search Results" element may now become redundant as there will be two search forms on the same page. You may like to delete it.
For pages that you do not want to be found in the search results, select those pages in the Website Explorer and then right-click and select "Do Not Index" from the context menu. These pages will be published to your server as usual but they will not be indexed and will not show up in the search results. To index these files again, repeat the above steps and the "Do Not Index" status will be turned off.
Publish the pages. If you have already published your website, you can select "Index files only" when publishing so that only the index files and the text files used by the search engine are uploaded to your server.
A folder "zsindex" will be created on the document root of your website. It needs to be made writable for the search engine to work as the search engine will create extra files there. If you publish your website using the SFTP publisher of our software, the permissions will be set automatically. However if you use the FTP or FTPS publishers of our software or publish to the local computer first and then upload the files to your server, you will need to set the permissions manually. You can use an FTP client or the FTP manager provided by your hosting company to set this. For example, if you use the FTP Client, FileZilla, you can select the folder "zsindex" and right-click on it. Then select "File Permissions". To make the folder writable, use numeric value 777 like the following: