From 5c8d12edf996f7f58dd7d4f0325a8d6dd712b669 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 16 Aug 2007 16:21:08 +0000 Subject: [PATCH] Comment on use of PQF instead of CQL --- samples/zoom/zoomscan.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/zoom/zoomscan.pl b/samples/zoom/zoomscan.pl index dcdb90d..cf787fa 100644 --- a/samples/zoom/zoomscan.pl +++ b/samples/zoom/zoomscan.pl @@ -1,4 +1,4 @@ -# $Id: zoomscan.pl,v 1.1 2007-08-15 18:36:36 mike Exp $ +# $Id: zoomscan.pl,v 1.2 2007-08-16 16:21:08 mike Exp $ # # This is the scanning counterpart to zoomscan.pl's searching # perl -I../../blib/lib -I../../blib/arch zoomscan.pl @@ -17,7 +17,8 @@ my($host, $scanQuery) = @ARGV; eval { my $conn = new ZOOM::Connection($host, 0); $conn->option(preferredRecordSyntax => "usmarc"); - my $ss = $conn->scan_pqf($scanQuery); + ### Could use ZOOM::Query::CQL below, but that only work in SRU/W. + my $ss = $conn->scan(new ZOOM::Query::PQF($scanQuery)); my $n = $ss->size(); for my $i (0..$n-1) { my($term, $occ) = $ss->term($i); -- 1.7.10.4