(beta4 contains updates to work with current (2015) Search API and Search API Solr)

Sarnia allows a Drupal site to interact with and display data from Solr cores with arbitrary schemas, mainly by building views. This is useful for Solr cores that index large, external (ie, non-Drupal) datasets that either aren't practical to store in Drupal or that are already indexed in Solr.

Sarnia treats records from Solr as Drupal entities, although listing, filtering, and displaying Sarnia entities should be done using Views. Solr properties can be formatted within Views fields using field formatters (hook_field_formatter_info(), hook_field_formatter_view()).

There is user documentation with screenshots in the handbook.

This module depends on Search API, Search API Solr, and Views.

Latest development

  • After a prolonged period, the current beta4 version has been patched and tested to work with the latest Search API and Search API Solr. The included documentation has been updated in the current dev version.
  • Random sorts in Views can be added with #1197538: Random sort in Views
  • There is now working FacetAPI integration (requires search_api_facetapi, which is included in the Search API project)

The Sarnia project contains example drush makefile code that applies the first patch from above.

This module was developed by Palantir.net, and sponsored by the Field Museum of Natural History. Development supported by OpenPlus and currently Askari Solutions Inc..

Project Information