LucyX:...hClient(3pm)
π LucyX::Remote::SearchClient π
okay so bestie, real talk: this is the LucyX::Remote::SearchClient page from the User Contributed Perl Documentation β yes, the 3pm girlies. and before we even get into it, here's the whole vibe in one breath: you make a remote procedure call, and for every call that does not close/terminate the socket connection, expect a response back that's been serialized using Storable. that's it. that's the tea. π«β¨
β¨ NAME β¨
LucyX::Remote::SearchClient β Connect to a remote SearchServer. π¦
πΈ SYNOPSIS πΈ
like, here's you, being a main character:
my $client = LucyX::Remote::SearchClient->new(
peer_address => 'searchserver1:7890',
);
my $hits = $client->hits( query => $query );
no cap, that's genuinely all it takes. π
π DESCRIPTION π
okay so <pink>SearchClient</pink> is a subclass of <purple>Lucy::Search::Searcher</purple>, which means it can be used to search an index on a remote machine β and that remote machine gets made accessible via <purple>SearchServer</purple>. so basically it's giving searcher energy, but the index is living somewhere else and you're just facetiming it. long distance relationship that actually works, we love to see it. π
π METHODS π
π new
Constructor. Takes hash-style params. (iykyk β you just pass in a bunch of key => value pairs and it handles the rest, iconic behavior honestly.)
peer_addressβ The name/IP and the port number which the client should attempt to connect to. π
heads up bestie: it's the name/IP and the port number together, like 'searchserver1:7890' up there in the synopsis β don't forget the port, she needs the whole address or she's just standing outside knocking on nothing. π
and that's the whole page, periodt. πβ¨ this lil beauty comes to you from perl v5.42.0, dated 2025-07-25, straight outta the User Contributed Perl Documentation. go search something remote, queen. ππ«Ά
π¦ where this page comes from
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms