To start indexing, do the following:
- Enter the job name (it can be any name) and then the address of the web-site to run indexing on:
Setting up Indexing Parameters
In the example above, the localhost is a name of a job, and http://localhost/my_site is the web-site address.
- Run indexer.exe in the command line with the following parameters defined:
- the name of the job;
- the name of the configuration file and its location (in case it is located in another directory).
Example for Windows:
C:\indexer.exe --config=D:\www\search.conf localhost
Example for Unix/Linux:
./indexer.exe --config=/home/www/search.conf name_of_task
To perform indexing of several sites at a time, you should enter the sites` URLs within one job in search.conf:
Setting up Several Sites Indexing
Having finished the indexing the system creates the following set of index files:
- files.cns - description of all documents on the site;
- index.cns - search index itself;
- docs.cns - list of all texts on the site;
- fulltxt.cns - full-text index;
- stats.log - statistics report (for saving the indexing results in the database; see Statistics).
Note: At the moment, two types of indexing are available in the system:
- HTTP-mode - standard method of indexing a site located on a web-server. To run HTTP-indexing, you should specify the site URL in the search.conf file (see search.conf).
- Local disk indexing - indexing a copy of the site stored on the local disk of your computer. Access to the Internet is not required. To run local indexinf, you should specify the site URL and its files extensions (see search.conf).