Hi,

I am trying to run Lucy (Lucy-0.6.1 : https://metacpan.org/release/Lucy) in client server mode on Ubuntu as follows:
#server.pl
#!/perl/bin/perl

use strict;
use warnings;
use Lucy::Search::IndexSearcher;
use LucyX::Remote::SearchServer;

my $searcher = Lucy::Search::IndexSearcher->new(
index => 'indexdir'
);
my $search_server = LucyX::Remote::SearchServer->new(
searcher => $searcher
);
$search_server->serve(
port => 7890,
);
#client.pl
#!/perl/bin/perl

use strict;
use warnings;
use Lucy::Search::IndexSearcher;
use LucyX::Remote::SearchClient;

my $client = LucyX::Remote::SearchClient->new(
peer_address => 'localhost:7890',
);

my $hits = $client->hits( query => "nike" );
while ( my $hit = $hits->next ) {
print "$hit->{Shoes}\t$hit->{ID}\n";
}

After I run server on one shell, I execute the client on another shell, however, I get the following error:

Missing required parameter: 'schema'
cfish_XSBind_locate_args at xs/XSBind.c line 441
at /home/r/perl5/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux/LucyX/Remote/SearchClient.pm line 35.
LucyX::Remote::SearchClient::new("LucyX::Remote::SearchClient", "peer_address", "localhost:7890") called at client.pl line 13
When I run a regular lucy search script like below, it runs fine.

#search.pl
#!/perl/bin/perl

use strict;
use warnings;
use Lucy::Search::IndexSearcher;
use Array::Utils qw(:all);

my $searcher = Lucy::Search::IndexSearcher->new(
index => 'indexdir'
);

my $hits = $searcher->hits( query => "nike" );
while ( my $hit = $hits->next ) {
print "$hit->{Shoes}\t$hit->{ID}\n";
}

Any suggestions on how to run Lucy in client, server mode?

One other related query, how can I perform search (in e.g. search.pl script above) on a specific column in a tabular data rather than the default mode of searching all columns together. So, something like: 'my $hits = $searcher->hits( query => "Shoes:nike" );' ?

Thank you,
Raja
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB