Skip to main content

Home/ Drupal for Developers/ Group items tagged solr

Rss Feed Group items tagged

Daniel Gregoire

Searchlight: A Views-driven Approach to Pluggable Search in Drupal | Development Seed - 5 views

  •  
    Write-up and video on Development Seed's new "Searchlight" module, which brings the power of Solr or Sphinx as Views backends. A la Views 3.x, but with some differences. Also nice demo of Health Market Innovation's site which Dev. Seed did.
Daniel Gregoire

On RHEL and CentOS. | drupal.org - 0 views

  •  
    Script and explanation of getting Solr setup as a service in RHEL/CentOS.
Daniel Gregoire

Apache Solr and Drupal Default's Search | Trellon - 0 views

  • 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]);}?>
1 - 8 of 8
Showing 20 items per page