Note: Google Sitemap generation is not the main CNSearch function; first of all, CNSearch is the system for full-text search at a site.
To generate Google Sitemap, one should perform indexing (see indexing module) and set the search module (see search module) at the site. After that, Google Sitemap generation can be performed by means of accessing the address:
http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword
where,
If search index contains several sites, then one can assign the site number, for which Google Sitemap will be generated, with the held of the additional parameter "d".
The method of number assignment is described in the section "Searching at selected sites".
For example:
http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword&d=5
Google Sitemap generation should be performed right after the search index updating. In Unix/Linux systems "fetch" programs are used for this purpose (it is installed at FreeBSD by default) or wget:
fetch -q -o /path/to/www.site.com/sitemap.xml \ http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword
or
wget -q -O /path/to/www.site.com/sitemap.xml \ http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword
where