Skip to content

Sphinx::Config::Builder is a Sphinx configuration builder, most useful for creating "dynamic" configuration files on the fly, using a Perl script. Use it to create Perl scripts that Sphinx's "indexer" can use via the "--config" flag.

Notifications You must be signed in to change notification settings

357r4bd/perl-Sphinx-Config-Builder

Repository files navigation

perl-Sphinx-Config-Builder

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.

We take advantage of the fact that Sphinx will treat a configuration file as a program if there is a shebang line to utilize. Perl is an obvious choice for creating such dynamic configuration files.

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 also particularly useful for managing non-natively supported Sphinx data sources that require the additional step of generating XMLPipe/Pipe2 sources.

Note: the module doesn't read in Sphinx configuration files, it simply allows one to write a program that dynamically outputs a configuration for Sphinx to read at runtime.

About

Sphinx::Config::Builder is a Sphinx configuration builder, most useful for creating "dynamic" configuration files on the fly, using a Perl script. Use it to create Perl scripts that Sphinx's "indexer" can use via the "--config" flag.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages