solr multicore

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2013-01-30 13:55:24 +01:00
parent fc0253d9c2
commit c3f366a045
3 changed files with 40 additions and 17 deletions

View File

@@ -9,19 +9,24 @@ function materio_search_api_settings(){
$index_options[$index->machine_name] = $index->name;
}
$form['mainsearchindex'] = array(
'#type'=>'select',
'#options'=>$index_options,
'#default_value' => variable_get('mainsearchindex', -1),
'#title' => t('Main search api index'),
);
$languages = locale_language_list();
// dsm($languages, 'languages');
foreach ($languages as $lcode => $name) {
$form['mainsearchindex_'.$lcode] = array(
'#type'=>'select',
'#options'=>$index_options,
'#default_value' => variable_get('mainsearchindex_'.$lcode, -1),
'#title' => t('Main search api index for %lang contents.', array('%lang'=>$name)),
);
$form['autocompletesearchindex'] = array(
'#type'=>'select',
'#options'=>$index_options,
'#default_value' => variable_get('autocompletesearchindex', -1),
'#title' => t('Autocomplete search api index'),
);
$form['autocompletesearchindex_'.$lcode] = array(
'#type'=>'select',
'#options'=>$index_options,
'#default_value' => variable_get('autocompletesearchindex_'.$lcode, -1),
'#title' => t('Autocomplete search api index for %lang contents.', array('%lang'=>$name)),
);
}
// TODO: select the activated viewmodes for change view mode and selected view mode
$entity_infos = entity_get_info();