Quote from: careem at Aug 25, 2011, 09:24 AM
I dont understand how the indexation works
I created a snippet with the indexation.php file and called that snippet from a page and when visited the page i get an error.
Is this how you index the site or are there any different way to do it
By default the engine parameter is 'mysql', which means that you do not have to index any files. You do as usual a direct search inside the mysql base.
But if you would like do a search in dynamic contents, your first need to index the content of your documents. For the moment this a manual process. For doing this you need to use the indexation.php script. This is not a snippet. And you probably adapt this script to your own needs. The code is highly commented.
To use it you need to:
- edit the script file, modify the line 22 to specify which documents you want index (see GetIds addon for the ids parameter specification)
- then drop the modified script file inside the root folder of your local environment
- at the end of the execution of the script, the files/docindex repository is created of modified
- then upload to your server this new docindex folder for using it with the "zend" parameter.
If you don't require search in dynamic contents, prefer the "mysql" mode which provide faster searches.
I will provide a backend module to manage the indexation of contents with the 1.0.0 pl release, but for the moment you need to do this manually.