NAME

NexTrieve::Search - handle searching with NexTrieve

SYNOPSIS

use NexTrieve;
die unless NexTrieve::Search->executable;

$ntv = NexTrieve->new( | {method => value} );

# using collections
$collection = $ntv->Collection( path );
$search = $collection->Search( mnemonic, | indexname );

# using direct access
$resource = $ntv->Resource( | file | xml | {method => value} );
$search = $ntv->Search( | file | $resource | host:port | port );

$query = $ntv->Query( file | xml | {method => value} );

# using Perl DOM
$hitlist = $search->Hitlist( file | xml | $query );
foreach ($hitlist->Hits) {

# using external file (e.g. for XSLT transformations)
$search->Hitlist( file | xml | $query, $filename );
system( "xsltproc stylesheet.xsl $filename" );

DESCRIPTION

The Search object of the Perl support for NexTrieve. Do not create directly, but through the Search method of the NexTrieve or the NexTrieve::Collection object.

CLASS METHODS

These methods are available as class methods.

executable

$executable = NexTrieve::Search->executable;

METHODS

These methods are available to the NexTrieve::Search object.

Hitlist

$hitlist = $search->Hitlist( $query );

Resource

$resource = $search->Resource( | file | xml | {method => value} );

indexdir

$search->indexdir( $indexdir );
$indexdir = $search->indexdir;

AUTHOR

Elizabeth Mattijsen, <liz@nextrieve.com>.

Please report bugs to <perlbugs@nextrieve.com>.

COPYRIGHT

Copyright (c) 1995-2002 Elizabeth Mattijsen <liz@nextrieve.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

http://www.nextrieve.com, the NexTrieve.pm and the other NexTrieve::xxx modules.