incubator-lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <mar...@rectangular.com>
Subject Re: [lucy-user] Remote SearchServer and PolySearcher(SearchClient) usage
Date Mon, 31 Oct 2011 12:13:24 GMT
On Mon, Oct 31, 2011 at 12:59:37PM +0200, goran kent wrote:
> my @searcher;
> # batch of remote nodes to search
> foreach my $remote_host (qw(10.0.0.1)) {
>     push @searcher, LucyX::Remote::SearchClient->new(
>         peer_address => qq($remote_host:7890),
>         password     => $pw,
>     );
> }

Please try adding a Schema to SearchClient's constructor arguments.

     push @searcher, LucyX::Remote::SearchClient->new(
         peer_address => qq($remote_host:7890),
         password     => $pw,
+        schema       => $schema,
     );


I can duplicate your symptoms by commenting out the schema argument in
t/510-remote.t.

It seems that the autogenerated XS binding for Lucy::Search::Searcher#new
(invoked as SUPER::new from within SearchClient.pm) is not throwing an error
when it should to indicate that the required 'schema' param is missing.

Marvin Humphrey


Mime
View raw message