apache solr

Using apachesolr to index custom data

balazs.dianiska's picture

Imagine you have a custom database table, storing some imported content for your nodes. This post will explain how this content can be exposed to be indexed by Solr via the apachesolr module. The example module provided was tested with apachesolr 6.x-1.6. It assumes that this custom content is associated to nodes (e.g. a custom imported text value).

Acquia Podcast 36: Neil Hastings on Solr and OpenLayers in Drupal 7

With advances in Apache Solr and Drupal, it is easier to do some really neat things with geolocating search results and displaying those results on a map. In this episode I talk with Neil Hastings of TreeHouse Agency about the work they did with Solr and OpenLayers maps for the US Dept of Energy.

Show notes

A story of an intern at Acquia

nick.veenhof's picture

The history of my engagement with Acquia started a while ago — well, a couple of months. Considering how fast Acquia is growing, I'd call that "a while ago" around here!

The S-Files: Adding a custom sort to Acquia Search (Apache Solr)

Robert Douglass's picture

Tech Support Case Studies

We've received several inquiries about adding custom sorts to the the sorting block on search results for our popular Acquia Search product. This is fortunately quite easy, though it currently involves preparing a custom module that implements one hook:
hook_apachesolr_prepare_query(&$query)

<?php
  
function hook_apachesolr_prepare_query(&$query) {
    
// You can get the 'solr_field_name' from q=admin/reports/apachesolr
    
$query->set_available_sort('solr_field_name', array(
      
// how the sort link is to appear in the sorts block
      
'title' => t('Name of sort'),
      
'default' => 'asc', // or 'desc'
     
));
   }
?>