Name : perl-Sphinx-Config-Builder
| |
Version : 1.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 18:02:47
|
Group : Development/Libraries/Perl
| Source RPM : perl-Sphinx-Config-Builder-1.03-lp155.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl extension dynamically creating Sphinx configuration files on the f[cut]
|
Description :
The motivation behind this module is the need to manage many indexes and corresponding sources handled by a single Sphinx \'searchd\' instance. Managing a configuration file with many indexes and sources quickly becomes unweildy, and a programatic solution is necessary. Using \'Sphinx::Config::Builder\', one may more easily manage Sphinx configurations using a more appropriate backend (e.g., a simple \'.ini\' file or even a MySQL database). This is particularly useful if one is frequently adding or deleting indexes and sources. This approach is particularly useful for managing non-natively supported Sphinx datasources that might require the additional step of generating XMLPipe/Pipe2 sources.
This module doesn\'t read in Sphinx configuration files, it simply allows one to construct and output a configuration file programmtically.
This module allows one to systematically construct a Sphinx configuration file that contains so many entries that it is best created dynamically. It\'s fairly low level, and provides containers for the following:
* A list of \'Sphinx::Config::Entry::Index\' objects, one per \'index\' section;
* A list of \'Sphinx::Config::Entry::Source\' objects, one per \'source\' section;
* A singular \'Sphinx::Config::Entry::Indexer\' object, one per configuration for \'indexer\' options
* A singular \'Sphinx::Config::Entry::Searchd\' object, one per configuration for \'searchd\' options
The general idea is that one builds up a list of \'index\' sections and corresponding \'source\' sections. One then defines the \'indexer\' and \'searchd\' options. One is not bound to specific keywords in each section, meaning that they may add any key/value pair (as a singleton \'HASH\' referece). Each key/value pair corresponds to a key/value line in each section.
All \'Sphinx::Config::Entry\' derived classes implement a \'as_string\' method. This method outputs the section in the format that Sphinx expects. The overall \'Sphinx::Config::Builder\' class has a \'as_string\' method that will iterate over all members, calling their \'as_string\' method. The result is the full configuration file that may be printed to STDOUT for the \'indexer\' to consume using the \'--config\' option.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/noarch |