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