* perl5.swg
*
* Perl5 runtime library
- * $Header: /home/cvsroot/idis/perl/Attic/IDZebra_wrap.c,v 1.17 2003-05-07 20:51:12 pop Exp $
+ * $Header: /home/cvsroot/idis/perl/Attic/IDZebra_wrap.c,v 1.18 2003-05-21 08:03:02 pop Exp $
* ----------------------------------------------------------------------------- */
#define SWIGPERL
const char *_swigerr = _swigmsg;
{
ZebraHandle arg1 ;
- ODR arg2 ;
- ODR arg3 ;
- char *arg4 ;
- char *arg5 ;
+ char *arg2 ;
+ char *arg3 ;
int result;
int argvi = 0;
dXSARGS;
- if ((items < 5) || (items > 5)) {
- SWIG_croak("Usage: search_PQF(zh,odr_input,odr_output,pqf_query,setname);");
+ if ((items < 3) || (items > 3)) {
+ SWIG_croak("Usage: search_PQF(zh,pqf_query,setname);");
}
{
ZebraHandle * argp;
}
arg1 = *argp;
}
- {
- ODR * argp;
- if (SWIG_ConvertPtr(ST(1),(void **) &argp, SWIGTYPE_p_ODR,0) < 0) {
- SWIG_croak("Type error in argument 2 of search_PQF. Expected _p_ODR");
- }
- arg2 = *argp;
- }
- {
- ODR * argp;
- if (SWIG_ConvertPtr(ST(2),(void **) &argp, SWIGTYPE_p_ODR,0) < 0) {
- SWIG_croak("Type error in argument 3 of search_PQF. Expected _p_ODR");
- }
- arg3 = *argp;
- }
- if (!SvOK((SV*) ST(3))) arg4 = 0;
- else arg4 = (char *) SvPV(ST(3), PL_na);
- if (!SvOK((SV*) ST(4))) arg5 = 0;
- else arg5 = (char *) SvPV(ST(4), PL_na);
- result = (int)zebra_search_PQF(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5);
+ if (!SvOK((SV*) ST(1))) arg2 = 0;
+ else arg2 = (char *) SvPV(ST(1), PL_na);
+ if (!SvOK((SV*) ST(2))) arg3 = 0;
+ else arg3 = (char *) SvPV(ST(2), PL_na);
+ result = (int)zebra_search_PQF(arg1,(char const *)arg2,(char const *)arg3);
ST(argvi) = sv_newmortal();
sv_setiv(ST(argvi++), (IV) result);
-# $Id: Session.pm,v 1.16 2003-05-07 20:51:12 pop Exp $
+# $Id: Session.pm,v 1.17 2003-05-21 08:03:02 pop Exp $
#
# Zebra perl API header
# =============================================================================
use IDZebra::ScanList;
use IDZebra::RetrievalRecord;
require Exporter;
- our $VERSION = do { my @r = (q$Revision: 1.16 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+ our $VERSION = do { my @r = (q$Revision: 1.17 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
our @ISA = qw(IDZebra::Logger Exporter);
our @EXPORT = qw (TRANS_RW TRANS_RO);
}
my ($self, $query, $setname) = @_;
my $hits = IDZebra::search_PQF($self->{zh},
- $self->{odr_input},
- $self->{odr_output},
$query,
$setname);