Previous Next Contents

4. Configuring the Server

Configuration of the server involves editing the /usr/ASFnode/conf/ASFnode.conf file and starting (or restarting) the server. The configuration file consists of sections delimited by starting and ending tags of the form <mysection> and </mysection>. Within a section may be a nested section or a value/attribute pair of the form value=attribute. There is one main section, server that handles general server characteristics. The following attributes may be set in that section:

Port

Port number on which to run server, default is 4567.

Type

Type of server to run, either STANDALONE or FORKING (default)

Debug

If you want to log debugging information to the logs/debug file, set this attribute to ON, otherwise OFF (default)

Following the server section, you may have a section for each database (subject) you wish to serve, e.g. "gils". You can name a database section whatever you wish (as long as it doesn't conflict, e.g. "server"). That name is the one a client will specify when searching. Within database sections, the following directives are valid:

Type

Type of Sai search engine (currently only 'Isearch' supported)

Location

Full path of Isearch database, e.g. "/usr/db/GILS".

CentroidDatabase

If this is a regular database, you can reference a centroid database which the server will associate with this subject. The value of this directive should be the name of another database section, e.g. "gils-centroids".

Here is a complete example configuration file:

<server>
Port=2210
Type=FORKING
Debug=ON
PduDebug=OFF
</server>
<gils>
Type=Isearch
Location=/usr/db/GILS
CentroidDatabase=gils-centroids
</gils>
<gils-centroids>
Type=Isearch
Location=/usr/db/gils.out/GILS_CENTROIDS
</gils-centroids>


Previous Next Contents