mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
11 lines
359 B
PHP
11 lines
359 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
|
|
|
use nntmux\SphinxSearch;
|
|
|
|
if (! isset($argv[1]) || ! in_array($argv[1], ['releases_rt', 'release_files_rt'])) {
|
|
exit('Argument1 is the index name, currently only releases_rt/release_files_rt are supported.'.PHP_EOL);
|
|
}
|
|
(new SphinxSearch())->optimizeRTIndex($argv[1]);
|