Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.671 kB
<?php
// Add to mysite/_config.php
/*
DataObject::add_extension('SiteTree', 'SolrIndexable');
Object::add_extension('Page_Controller', 'SolrSearchExtension');
*/
// To enable faceting, you need to specify which fields should be available
// SolrSearch::$facets = array ('AlcKeywords_ms', 'AlcPerson_ms', 'AlcCompany_ms', 'AlcOrganization_ms');
// You will also need to specify a solr configuration if your solr application is on a different host:port than
// the default
// SolrSearchService::$solr_details = array();
if (($solr_module_dir = basename(dirname(__FILE__))) != 'solr') {
exit("The solr module must be installed in /solr, not in $solr_module_dir");
}
Jump to Line
Something went wrong with that request. Please try again.