🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.infosystems.wais
Article #369

Generic multi-type wais server

#369
From: Francois Schiettecatte
Date: Tue, 26 Jan 1993 13:42
66 lines
3121 bytes

Generic multi-type wais server
------------------------------

I have made a number of modifications to waisindex and waisserver to
allow support for multi-type documents. By multi-type documents, I
means that the document can be represented in multiple formats such as
text, gif, jpeg, etc, there is really no limit.

The changes described below should be applied to the 5.1 BIO release
of wais. As far as this is concerned, The only difference between 
the BIO release and the regular release is the fact that the
former uses a structure to keep document indexing information,
whereas the latter uses a bunch of pointers.

The changes are available from mendel.welch.jhu.edu [128.220.59.42] by
anonymous ftp. The changes located in /incoming/wais-multitype.Z.

The way it works is that you need to specify a command line arguement
to the waisindex program which tells it that this is a multi-type
database and that the documents are available in the following types,
for example:

/big/wais/wais/bin/waisindex -nopos -nopairs -d /big/wais-db/jfif \
-M "TEXT,JFIF,JFIF-TBNL" -t filename /big/wais-db/jfif/*.TEXT

The -M "TEXT,JFIF,JFIF-TBNL" argument tells waisindex that the
documents are available in TEXT, JFIF and JFIF-TBNL (thumbnail) format,
note that the standard -f argument is used to tell the indexer what
format the text file is in.

Waisindex is smart enough to check that the various file types are
indeed available to be retrieved, so that the user cannot be presented
with a choice of formats that do not exist for a document.

Also the changes to the server maintain compatibility with the current
database format, so you wont have to reindex your current databases.

You can also compress the text file too using unix compress.

But here is the catch, all the documents and the various representation
of each documents must be stored as separate files, with an extension
that matches the document type, for example:

-rw-r--r--  1 francois    59689 Oct  9 08:42 scarab.JFIF
-rw-r--r--  1 francois     6233 Jan 23 14:17 scarab.JFIF-TBNL
-rw-rw-r--  1 francois      425 Jan 21 17:08 scarab.TEXT

The file scarab.TEXT contains the TEXT document, scarab.JFIF contains
the JFIF document and scarab.JFIF-TBNL contains the JFIF thumbnail
document.

This is a pain, but a small price to pay, I guess, for this feature.

You may also be interested to know that the current releases of xwais
and HyperWais support multi-type documents. There may well be others,
but I have not really looked into this.

Francois Schiettecatte
Software Engineer
Advanced Technology Group
Welch Medical Library
Johns Hopkins University
Internet: francois@library.welch.jhu.edu
Phone	: (410) 955-7581
Technical Details
Message-ID: <1993Jan26.134231.14086@welchgate.welch.jhu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!welchgate.welch.jhu.edu!francois

Show Full Headers
Complete Article Headers
Newsgroups: comp.infosystems.wais
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!welchgate.welch.jhu.edu!francois
From: francois@welchgate.welch.jhu.edu (Francois Schiettecatte)
Subject: Generic multi-type wais server
Message-ID: <1993Jan26.134231.14086@welchgate.welch.jhu.edu>
Organization: Welch Medical Library
Date: Tue, 26 Jan 1993 13:42:31 GMT
Lines: 67