diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-18 15:21:02 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-18 15:21:02 -0700 |
commit | 53d45d7ffbe6bcdf336a0e666942557c11cf909b (patch) | |
tree | 7c26b636624162fd1036529ecc08ae63caef59f6 /plugins/SphinxSearch/scripts | |
parent | 9a35e48ee2a15ded31dd1dba8e0af9071e8a28ac (diff) | |
parent | 39cfdf0d8b333fec0c35e02d3ce9abb4f4338bf5 (diff) |
Merge branch '0.9.x'
Diffstat (limited to 'plugins/SphinxSearch/scripts')
-rwxr-xr-x | plugins/SphinxSearch/scripts/gen_config.php | 2 | ||||
-rwxr-xr-x | plugins/SphinxSearch/scripts/index_update.php | 8 | ||||
-rw-r--r-- | plugins/SphinxSearch/scripts/sphinx-utils.php | 1 |
3 files changed, 4 insertions, 7 deletions
diff --git a/plugins/SphinxSearch/scripts/gen_config.php b/plugins/SphinxSearch/scripts/gen_config.php index d5a00b6b6..e7f397747 100755 --- a/plugins/SphinxSearch/scripts/gen_config.php +++ b/plugins/SphinxSearch/scripts/gen_config.php @@ -70,8 +70,6 @@ searchd END; - - /** * Build config entries for a single site * @fixme we only seem to have master DB currently available... diff --git a/plugins/SphinxSearch/scripts/index_update.php b/plugins/SphinxSearch/scripts/index_update.php index 23c60ced7..abac5434f 100755 --- a/plugins/SphinxSearch/scripts/index_update.php +++ b/plugins/SphinxSearch/scripts/index_update.php @@ -42,20 +42,20 @@ sphinx_iterate_sites('sphinx_index_update'); function sphinx_index_update($sn) { $base = sphinx_base(); - + $baseIndexes = array('notice', 'profile'); $params = array(); - + if (have_option('rotate')) { $params[] = '--rotate'; } foreach ($baseIndexes as $index) { $params[] = "{$sn->dbname}_{$index}"; } - + $params = implode(' ', $params); $cmd = "$base/bin/indexer --config $base/etc/sphinx.conf $params"; - + print "$cmd\n"; system($cmd); } diff --git a/plugins/SphinxSearch/scripts/sphinx-utils.php b/plugins/SphinxSearch/scripts/sphinx-utils.php index 7bbc25270..22d70fb8d 100644 --- a/plugins/SphinxSearch/scripts/sphinx-utils.php +++ b/plugins/SphinxSearch/scripts/sphinx-utils.php @@ -60,4 +60,3 @@ function sphinx_iterate_sites($callback) } } } - |