NAME
NexTrieve::Hitlist::Hit - handle the Hit specifications of NexTrieve
SYNOPSIS
use NexTrieve;
$ntv = NexTrieve->new( | {method => value} );
$search = $ntv->Search( file | $resource | server:port | port );
$query = $ntv->Query( | file | xml | {method => value} );
$hitlist = $search->Hitlist( $query | xml | {method => value} );
# loop through all hits
foreach $hit ($hitlist->Hits) { }
# get a specific hit
$hit = $hitlist->Hit( $ordinal );
DESCRIPTION
The Hit object of the Perl support for NexTrieve. Do not create directly, but through the Hit method of the NexTrieve::Hitlist object.
METHODS
The following methods are available to the NexTrieve::Hitlist::Hit object.
attributes
@multi = $hit->attributes( 'multivaluedattributename' );
$single = $hit->attributes( 'singlevaluedattributename' );
($one,$two,$three) = $hit->attributes( qw(attr1 attr2 attr3) );
$hit->attributes( qw(attr1 attr2) ); # set @attr1, $attr1, @attr2 $attr2
docid
$docid = $hit->docid;
ordinal
$ordinal = $hit->ordinal;
preview
$preview = $hit->preview;
score
$score = $hit->score;
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.