From: pop Date: Wed, 21 May 2003 08:03:02 +0000 (+0000) Subject: Removed ODRs from zebra_search X-Git-Tag: ZEBRA.1.3.12~54 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=75afa0301433673a23f5c7c8e1f8c78efb4a2d4c;p=idzebra-moved-to-github.git Removed ODRs from zebra_search --- diff --git a/perl/IDZebra_wrap.c b/perl/IDZebra_wrap.c index 256cfac..eab4a79 100644 --- a/perl/IDZebra_wrap.c +++ b/perl/IDZebra_wrap.c @@ -212,7 +212,7 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { * 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 @@ -4194,16 +4194,14 @@ XS(_wrap_search_PQF) { 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; @@ -4212,25 +4210,11 @@ XS(_wrap_search_PQF) { } 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); diff --git a/perl/lib/IDZebra/Session.pm b/perl/lib/IDZebra/Session.pm index 57dc36a..1283702 100644 --- a/perl/lib/IDZebra/Session.pm +++ b/perl/lib/IDZebra/Session.pm @@ -1,4 +1,4 @@ -# $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 # ============================================================================= @@ -16,7 +16,7 @@ BEGIN { 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); } @@ -616,8 +616,6 @@ sub _search_pqf { my ($self, $query, $setname) = @_; my $hits = IDZebra::search_PQF($self->{zh}, - $self->{odr_input}, - $self->{odr_output}, $query, $setname);