protected function SearchApiFederatedSolrRemap::federatedFields in Search API Federated Solr 7
Same name and namespace in other branches
- 7.3 src/SearchApiFederatedSolrRemap.php \SearchApiFederatedSolrRemap::federatedFields()
- 7.2 src/SearchApiFederatedSolrRemap.php \SearchApiFederatedSolrRemap::federatedFields()
This is the list of possible destination fields.
Return value
array
See also
docs/federated_schema.md
2 calls to SearchApiFederatedSolrRemap::federatedFields()
- SearchApiFederatedSolrRemap::configurationForm in src/
SearchApiFederatedSolrRemap.php - Implements SearchApiAlterCallbackInterface::configurationForm().
- SearchApiFederatedSolrRemap::indexFieldOptions in src/
SearchApiFederatedSolrRemap.php - Get a form options array containing all of the fields that can be remapped.
File
- src/
SearchApiFederatedSolrRemap.php, line 89
Class
- SearchApiFederatedSolrRemap
- Class SearchApiFederatedSolrRemap Provides a Search API index data alteration that remaps property names for indexed items.
Code
protected function federatedFields() {
return [
'federated_title' => [
'name' => t('Federated Title'),
'description' => '',
'type' => 'string',
],
'federated_date' => [
'name' => t('Federated Date'),
'description' => '',
'type' => 'date',
],
'federated_type' => [
'name' => t('Federated Type'),
'description' => '',
'type' => 'string',
],
'federated_terms' => [
'name' => t('Federated Terms'),
'description' => '',
'type' => 'string',
],
'federated_image' => [
'name' => t('Federated Image'),
'description' => '',
'type' => 'uri',
],
'rendered_item' => [
'name' => t('Rendered Item'),
'description' => '',
'type' => 'text',
],
];
}