Wais is a Perl module with access to freeWAIS-sf libraries.
USAGE
The main high-level interface are the functions Wais::Search and Wais::Retrieve. Both return a reference to an object of the class Wais::Result.
Wais::Search
Arguments of Wais::Search are hash references, one for each database to search. The keys of the hashes should be:
query
The query to submit.
database
The database which should be searched.
host
host is optional. It defaults to 'localhost'.
port
port is optional. It defaults to 210.
tag
A tag by which individual results can be associated to a database/host/port triple. If omitted defaults to the database name.
relevant
If present must be a reference to an array containing alternating document id's and types. Document id's must be of type Wais:Docid.
Here is a complete example:
$result = Wais::Search({'query' => 'pfeifer',
'database' => $db1,
'host' => 'ls6',
'relevant' => [$id, 'TEXT']},
{'query' => 'pfeifer',
'database' => $db2});
If host is 'localhost' and database.src exists, local search is performed instead of connecting a server.
Wais::Search will open $Wais::maxnumfd connections in parallel at most.
Product's homepage
Requirements:
· Perl