Thread View: comp.infosystems.wais
1 messages
1 total messages
Started by Francois Schiettecatte
Tue, 26 Jan 1993 18:18
Generic multi-type wais server (bug)
Author: Francois Schiettecatte
Date: Tue, 26 Jan 1993 18:18
Date: Tue, 26 Jan 1993 18:18
82 lines
3648 bytes
3648 bytes
Generic multi-type wais server (bug) ------------------------------------ I found a small bug in the multi-type wais server patches I sent out this morning while testing out my HyperWais stuff. The functions which retrieve documents did not report the end of a document correctly when you are not using the multi-type extensions and would run past the end of a documents. This bug does not manifest itself with xwais, so I did not pick it up sooner, sorry. The affected file is irretrvl.c. francois 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads