One issue that comes up from ApacheSolr being a separate search page is that the search form does not go to it by default. This is the $search_box in the page.tpl.php template. The way we change this behavior is to add a new submission handler to that form. You can create a custom module for this or put it in your custom theme.
<?php/*** Implementation of hook_form_alter()*/function custommodule_form_alter(&$form, $form_state, $form_id) { // Add submission handler to redirect to apachesolr if ($form_id == 'search_theme_form') { // Add a submit, because the search form redirects to a specific place $form['#submit'][] = 'custommodule_search_submit'; }}/*** Implementation of form submit function*/function custommodule_search_submit($form, &$form_state) { // Get form ID $form_id = $form['form_id']['#value']; // Create new redirect $form_state['redirect'] = 'search/apachesolr_search/'. trim($form_state['values'][$form_id]);}?>
Group items matching
in title, tags, annotations or urlComputer Problem Solved - 1 views
1More
Excellent Apps for Monitoring the Performance of Android Devices - 0 views
1More
Drupal Vs WordPress Vs Joomla: Settling The Debate Once And For All - 0 views
How does entity cache work in Drupal 8 - 0 views
How does entity cache work in Drupal 8 - 0 views
« First
‹ Previous
141 - 160 of 161
Next ›
Showing 20▼ items per page