Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PL-6 Generalize the Search API fields #39

Merged
merged 13 commits into from
Sep 19, 2018
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ This module facilitates indexing data from multiple Drupal sites into a single S

On each site included in the federated search, you will need to:

1. Install this module
2. Configure a Search API server to connect to the shared Solr index
3. Configure a Search API index according to the [recommended schema](docs/federated_schema.md)
1. Install Fields Search API Module
2. Install this module
3. Configure a Search API server to connect to the shared Solr index
4. Configure a Search API index according to the [recommended schema](docs/federated_schema.md)

In order to display results from the Solr index:

Expand All @@ -26,7 +27,6 @@ When changes to [federated-search-react](https://github.com/palantirnet/federate

## More information

* [How to use this module](docs/usage.md)
* [How to configure a Search API Index for federated search](docs/federated_schema.md)
* [How to theme the ReactJS search app](docs/theme.md)
* [How to add the search form block](docs/block.md)
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "vcs",
"url": "https://github.com/palantirnet/search_api_field_map.git"
}
],
"require": {
"drupal/core": "^8.0",
"drupal/search_api_solr": "^1.2",
"drupal/token": "^1.1"
"drupal/token": "^1.1",
"palantirnet/search_api_field_map": "dev-master"
}
}
Binary file removed docs/images/add_federated_field.png
Binary file not shown.
Binary file removed docs/images/add_federated_field_save_settings_2.png
Binary file not shown.
Binary file removed docs/images/add_federated_field_settings_save.png
Binary file not shown.
Binary file removed docs/images/add_federated_term_field_label.png
Binary file not shown.
Binary file removed docs/images/add_federated_term_to_term.png
Binary file not shown.
Binary file removed docs/images/add_federated_terms.png
Binary file not shown.
Binary file removed docs/images/add_federated_terms_to_vocabulary.png
Binary file not shown.
Binary file removed docs/images/confirmation_added_federated_terms.png
Binary file not shown.
Binary file removed docs/images/edit_federated_field.png
Binary file not shown.
Binary file removed docs/images/save_index_field_config.png
Binary file not shown.
46 changes: 0 additions & 46 deletions docs/usage.md

This file was deleted.

1 change: 1 addition & 0 deletions search_api_federated_solr.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: Allows indexing multiple Drupal sites into a single Solr search ind
core: 8.x
package: Search
dependencies:
- search_api_field_map
- search_api_solr
- token
- field
6 changes: 3 additions & 3 deletions search_api_federated_solr.module
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ function search_api_federated_solr_search_api_solr_field_mapping_alter(\Drupal\s
$fields[$key] = $singleFieldsMap[$key];
}

// Map all "federated_field" property fields to their single value in solr.
// Map all "mapped_field" property fields to their single value in solr.
$field = $index->getField($key);
if (method_exists($field,'getPropertyPath') && 'federated_field' == $field->getPropertyPath()) {
$fields[$key] = str_replace("m_federated_","s_federated_", $fields[$key]);
if (method_exists($field,'getPropertyPath') && 'mapped_field' == $field->getPropertyPath()) {
$fields[$key] = preg_replace("/^(\w)m_/","$1s_", $fields[$key], 1);
}
};
}
Expand Down
84 changes: 0 additions & 84 deletions src/Plugin/search_api/processor/FederatedFields.php

This file was deleted.

This file was deleted.

58 changes: 0 additions & 58 deletions src/Plugin/search_api/processor/Property/SiteNameProperty.php

This file was deleted.

Loading