Using GoSWISH to create &use SWISH Indices |
Several modes are supported:
Since GoSwish is designed to search files,
the following forms have been crippled -- they won't work,
but they should give you a flavor of the GoSwish look and feel.
To see GoSwish in action, try the SREhttp/2 search engine |
There are two forms of directory entries, relative and fully qualified:
Relative directories are assumed to be subdirectories of a web-root directory. The web-root directory is defined on a server specific basis (it's typically the directory that contains the web server's home page).
Some examples might help (the following assume that the web-root directory is D:\WWW).
If a relative filename is given (for example, a file name with no directory or drive specified), it will be created in the INDEX subdirectory of this server's SWISH_DIR directory. If you leave this field blank, a randomly generated name (of the form INDEXn.SWI) is created (in this INDEX subdirectory).
There are several options for this entry:
DIR_PREFIX url_prefix , [ DIR_PREFIX url_prefix] where: DIR_PREFIX: a drive and directory url_prefix: a sitename (with possible path information) and where [ DIR_PREFIX url_prefix] are optional repetitions of additional DIR_PREFIX, url_prefix pairs.Notes:
* D:/WWW http://www.mysite.org/ * D:/WWW/SAMPLES http:/www.mysite.org/sampdir * D:/WWW/SAMPLES http://www.mysite.org/sampdir D:/WWW/TEST http://www.mysite.org/test/ver1
That is: each of these entries defines a keyword, with values obtained from matching <META> elements in HTML documents. Words that appear in the content of such an element will not found by standard searches.
Instead, you can search under the appropriate MetaName keyword,
using search strings with the syntax:
AMetaName=keywords
This means: search for "keywords" in the CONTENT field of <META NAME="AMetaName" ... > elements.
Search string example:
description = (dogs or cats) not (lions and tigers)
This query will retrieve all the files in which the "description" is associated
either with "dogs" or "cats" and that do
not contain the words "lions" and "tigers", where "lions" and "tigers" are not
associated to any meta name (that is, "lions" and "tigers" could appear anywhere
in the file).
<meta name="author" content="Jefferson">
<meta name="description" content="Blueprints for Monticello ">
For well organized sites, you can use properties instead of generating descriptive summaries
GoSwish has two means of generating these descriptions: either by examining the contents of text files, or by explicitily defining a description in a directory-specific-description file. file.
The Read from directory-specific descriptions file option means: look for a descriptive summary in the directory-specific description fileMore details....
The ... and generate if necessary option means: try the directory-specific-description file first; and if that doesn't work, try to generate a descriptive summary by examining the contents of the