logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

KinoSearch1::Search::SearchClient - connect to a remote SearchServer

Description

       SearchClient is a subclass of KinoSearch1::Searcher which can be used to search an index on a remote
       machine made accessible via SearchServer.

License, Disclaimer, Bugs, Etc.

       See KinoSearch1 version 1.01.

perl v5.40.0                                       2024-10-20             KinoSearch1::Search::SearchClient(3pm)

Limitations

       Limiting search results with a QueryFilter is not yet supported.

Methods

new
       Constructor.  Takes hash-style params.

       •   peer_address - The name/IP and the port number which the client should attempt to connect to.

       •   password - Password to be supplied to the SearchServer when initializing socket connection.

       •   analyzer - An object belonging to a subclass of KinoSearch1::Analysis::Analyzer

Name

       KinoSearch1::Search::SearchClient - connect to a remote SearchServer

Synopsis

           my $client = KinoSearch1::Search::SearchClient->new(
               peer_address => 'searchserver1:7890',
               password     => $pass,
               analyzer     => $analyzer,
           );
           my $hits = $client->search( query => $query );

See Also