';
for($i=0 ; $i< count($modes) ; $i++){
$current = false;
if($mode == $modes[$i]){
$current = true;
}
print '
- '.$msg[$modes[$i]].'
';
}
print '
';
print '
';
if($test_query){
switch($mode){
case 'records' :
$ss = new searcher_sphinx($test_query);
$sn = new searcher_records_all_fields($test_query);
// $sn = new searcher_records_title($test_query);
break;
case 'authors' :
require_once($class_path.'/searcher/searcher_sphinx_authors.class.php');
$ss = new searcher_sphinx_authors($test_query);
$sn = new searcher_authorities_authors($test_query);
break;
case 'titres_uniformes' :
$ss = new searcher_sphinx_titres_uniformes($test_query,7);
$sn = new searcher_authorities_titres_uniformes($test_query);
break;
case 'categories' :
$ss = new searcher_sphinx_authorities($test_query,2);
$sn = new searcher_authorities_categories($test_query);
break;
case 'publishers' :
$ss = new searcher_sphinx_authorities($test_query,3);
$sn = new searcher_authorities_publishers($test_query);
break;
case 'collections' :
$ss = new searcher_sphinx_authorities($test_query,4);
$sn = new searcher_authorities_collections($test_query);
break;
case 'subcollections' :
$ss = new searcher_sphinx_authorities($test_query,5);
$sn = new searcher_authorities_subcollections($test_query);
break;
case 'series' :
$ss = new searcher_sphinx_authorities($test_query,6);
$sn = new searcher_authorities_series($test_query);
break;
case 'indexint' :
$ss = new searcher_sphinx_authorities($test_query,8);
$sn = new searcher_authorities_indexint($test_query);
break;
case 'authpersos' :
$ss = new searcher_sphinx_authorities($test_query,9);
$sn = new searcher_authorities_authpersos($test_query);
break;
case 'concept' :
$ss = new searcher_sphinx_authorities($test_query,10);
$sn = new searcher_authorities_concepts($test_query);
break;
case 'authorities' :
$ss = new searcher_sphinx_authorities($test_query);
$sn = new searcher_autorities($test_query);
break;
}
if($sn && $ss){
$ss->explain();
$sn->explain($mode);
}
}