NAME
NexTrieve::Query - handle the Query specifications of NexTrieve
SYNOPSIS
use NexTrieve;
$ntv = NexTrieve->new( | {method => value} );
$query = $ntv->Query( | file | xml | {method => value} );
DESCRIPTION
The Query object of the Perl support for NexTrieve. Do not create directly, but through the Query method of the NexTrieve object.
METHODS
The following methods are available to the NexTrieve::Query object.
constraint
$query->constraint( 'attr1 = 1 & attr2 = 2' );
$constraint = $query->constraint;
displayedhits
$query->displayedhits( number );
$displayedhits = $query->displayedhits;
firsthit
$query->firsthit( ordinal );
$firsthit = $query->firsthit;
fuzzylevel
$query->fuzzylevel( 0 | 1 | 2 | 3 );
$fuzzylevel = $query->fuzzylevel;
highlightlength
$query->highlightlength( 0 | number );
$highlightlength = $query->highlightlength;
id
$query->id( id );
$id = $query->id;
indexname
$query->indexname( mnemonic );
$indexname = $query->indexname;
lasthit
$query->lasthit( $ordinal );
$lasthit -> $query->lasthit;
qall
$query->qall( qw(all of these words must occur) );
$qall = $query->qall;
qany
$query->qany( qw(all of these words may occur) );
$qany = $query->qany;
qnot
$query->qnot( qw(none of these words may occur) );
$qnot = $query->qnot;
query
$query->query( qw(+must may -maynot) );
$queryspec = $query->query;
showattributes
$query->showattributes( true | false );
$showattributes = $query->showattributes;
showpreviews
$query->showpreviews( true | false );
$showpreviews = $query->showpreviews;
type
$query->type( exact | fuzzy );
$type = $query->type;
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.