1 # $Id: Search.pm,v 1.9 2007-03-07 11:41:01 mike Exp $
3 package ZOOM::IRSpy::Task::Search;
10 our @ISA = qw(ZOOM::IRSpy::Task);
14 ZOOM::IRSpy::Task::Search - a searching task for IRSpy
30 my $this = $class->SUPER::new(@_);
31 $this->{query} = $query;
41 my $conn = $this->conn();
42 ### Note that adding this next line DOES NOT HELP at the moment --
43 # perhaps because of a ZOOM-C bug?
44 $conn->connect($conn->option("host"));
46 my $query = $this->{query};
47 $this->irspy()->log("irspy_task", $conn->option("host"),
48 " searching for '$query'");
49 $this->{rs} = $conn->search_pqf($query);
50 warn "no ZOOM-C level events queued by $this"
58 return ref($this) . "(" . $this->{query} . ")";
61 use overload '""' => \&render;
70 Mike Taylor, E<lt>mike@indexdata.comE<gt>
72 =head1 COPYRIGHT AND LICENSE
74 Copyright (C) 2006 by Index Data ApS.
76 This library is free software; you can redistribute it and/or modify
77 it under the same terms as Perl itself, either Perl version 5.8.7 or,
78 at your option, any later version of Perl 5 you may have available.