LucyX:...hClient(3pm)

πŸ“¦
version 0.6.2 Β· 2 versions
, in fedora 43

πŸ’– 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