function apachesolr_search_search_info in Apache Solr Search 8
Same name and namespace in other branches
- 7 apachesolr_search.module \apachesolr_search_search_info()
Implements hook_search_info().
File
- ./
apachesolr_search.module, line 710 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_search_info() {
// Load our core search page
// This core search page is assumed to always be there. It cannot be deleted.
$search_page = apachesolr_search_page_load('core_search');
// This can happen during install, or if the DB was manually changed.
if (empty($search_page)) {
$search_page = array();
$search_page['page_title'] = 'Site';
$search_page['search_path'] = 'search/site';
}
return array(
'title' => $search_page['page_title'],
'path' => str_replace('search/', '', $search_page['search_path']),
'conditions_callback' => variable_get('apachesolr_search_conditions_callback', 'apachesolr_search_conditions'),
);
}