Name : perl-Sphinx-Search
| |
Version : 0.31
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 4.57
| Date : 2024-08-05 19:41:35
|
Group : Development/Libraries/Perl
| Source RPM : perl-Sphinx-Search-0.31-4.57.src.rpm
|
Size : 0.09 MB
| |
Packager : (none)
| |
Summary : Sphinx search engine API Perl client
|
Description :
This is the Perl API client for the Sphinx open-source SQL full-text indexing search engine, http://www.sphinxsearch.com.
Since 0.9.9, Sphinx supports a native MySQL-protocol client, i.e. DBI with DBD::mysql. That is, you can configure the server to have a mysql41 listening port and then simply do
my $dbh = DBI->connect(\'dbi:mysql:host=127.0.0.1;port=9306;mysql_enable_utf8=1\') or die \"Failed to connect via DBI\"; my $sth = $dbh->prepare_cached(\"SELECT * FROM myindex WHERE MATCH(\'search terms\')\"); $sth->execute(); while (my $row = $sth->fetchrow_arrayref) { ... # Collect results }
The DBI client turns out to be significantly (about 5x) faster than this pure-Perl API. You should probably be using that instead.
This module also supports SphinxQL queries, with the small advantage that you can use either the standard API or the SphinxQL API over the one port (i.e. the searchd server does not need to be configured with a mysql41 listening port).
Given that the DBI client has several advantages over this API, future updates of this module are unlikely.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/openSUSE_Tumbleweed/noarch |