Berkeley Digital Library SunSITE

SWISH-E

Indexing with SWISH-E

SWISH-E has the capability to use configuration files in which you can specify all sorts of options for indexing. These options can be specified either in the config.h in which case they will be common to all users as they are included in the executable, or they can be added to the user configuration file, and, in this case of course, relevant only to the single user.

FILESYSTEM vs. HTTP
There are two main modes for swish: FILESYSTEM and HTTP. The FILESYSTEM medthod indexes files on the same machine, while the HTTP method allows for spidering. The method is chosen at compile time, so all users of an executable will be indexing with the same method. There are a few differences in the use of directives in the user configuration file, but they are outlined in the file itself.

Config.h
Note that any time there is a change made to the config.h it is necessary to recompile the executable to make the changes take place. Here is an example of the config.h file. The usage of each of the variables is documented in the file itself.

User configuration file
To use a configuration file, call it something such as swish-e.conf, and place it somewhere such as /usr/local/httpd/swish-e/. Here is an example of a typical user configuration file. Again the use of the variables is documented in the file itself. You will notice that the file is divied in directive for FILESYSTEM AND HTTP , FILESYSTEM ONLY, and HTTP ONLY directives, each of which will be used according to the kind of method used: either FILESYSTEM or HTTP. A user needs to ask the system administrator which method is used and based on that knowledge set the appropriate variables.

The settings in the user configuration file always override the settings in the config.h file.

Your basic command for indexing is:

% swish -c <User config file>

Or you can choose among the full set of options

Table of Contents

Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Hewlett-Packard Company
Originally by Kevin Hughes, kev@kevcom.com, March 11, 1994.
SWISH-E is distributed with no warranty under the terms of the GNU Public License,
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
Public questions may be posted to the SWISH-E Discussion.
Document maintained at http://sunsite.berkeley.edu/SWISH-E/Manual/ by the SunSITE Manager.
Last update September 9, 1998. SunSITE Manager: manager@sunsite.berkeley.edu