public function SarniaSolrService::configurationForm in Sarnia 7
Overrides SearchApiAbstractService::configurationForm().
Overrides SearchApiSolrService::configurationForm
File
- ./
service.inc, line 39
Class
- SarniaSolrService
- Search service class using Solr server.
Code
public function configurationForm(array $form, array &$form_state) {
$form = parent::configurationForm($form, $form_state);
$options = $this->options + array(
'sarnia_request_handler' => '',
'sarnia_default_query' => '*:*',
);
$form['advanced']['sarnia_request_handler'] = array(
'#type' => 'textfield',
'#title' => t('Sarnia request handler'),
'#description' => t("Enter the name of a requestHandler from the core's solrconfig.xml file. This should only be necessary if you need to specify a handler to use other than the default."),
'#default_value' => $options['sarnia_request_handler'],
);
$form['advanced']['sarnia_default_query'] = array(
'#type' => 'textfield',
'#title' => t('Sarnia default query'),
'#description' => t("Enter a default query parameter. This may only be necessary if a default query cannot be specified in the solrconfig.xml."),
'#default_value' => $options['sarnia_default_query'],
);
return $form;
}