function search_api_federated_solr_search_api_alter_callback_info in Search API Federated Solr 7
Same name and namespace in other branches
- 7.3 search_api_federated_solr.module \search_api_federated_solr_search_api_alter_callback_info()
- 7.2 search_api_federated_solr.module \search_api_federated_solr_search_api_alter_callback_info()
Implements hook_search_api_alter_callback_info().
File
- ./
search_api_federated_solr.module, line 27 - search_api_federated_solr.module Contains hook implementations for the Federated Solr Search API Module.
Code
function search_api_federated_solr_search_api_alter_callback_info() {
$callbacks['site_name'] = array(
'name' => t('Site Name'),
'description' => t('The name of the site from which this content originated. This can be useful if indexing multiple sites with a single search index.'),
'class' => 'SearchApiFederatedSolrSiteName',
);
$callbacks['search_api_urls'] = array(
'name' => t('URLs'),
'description' => t('The links to the node on all available sites. This can be useful if indexing multiple sites with a single search index.'),
'class' => 'SearchApiFederatedSolrUrls',
);
$callbacks['canonical_url'] = array(
'name' => t('Canonical URL'),
'description' => t('Preferred URL for this content.'),
'class' => 'SearchApiFederatedSolrCanonicalUrl',
);
$callbacks['federated_field'] = array(
'name' => t('Federated Field'),
'description' => t('A token or free text field that can be customized per-bundle.'),
'class' => 'SearchApiFederatedSolrField',
);
$callbacks['federated_terms'] = array(
'name' => t('Federated Term'),
'description' => t('By adding this field to your search index configuration, you have enabled the federated terms processor to run when new items are indexed. Next, add a "Federated Terms" field to any taxonomy vocabulary whose terms should be mapped to a "federated" term (this helps map terms across vocabularies and sites to a single "federated" term). Then, edit terms in those vocabularies to add the federated term destination value (i.e. "Conditions>Blood Disorders"). Once that tagged content gets indexed, it will have "federated_terms" populated with any matching federated term destination values.'),
'class' => 'SearchApiFederatedSolrTerms',
);
$callbacks['remap'] = array(
'name' => t('Re-map Field Names'),
'description' => t(''),
'class' => 'SearchApiFederatedSolrRemap',
);
return $callbacks;
}