Skip to content

Instantly share code, notes, and snippets.

@tappleby
Created June 11, 2015 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tappleby/fb491c2b7598b664a219 to your computer and use it in GitHub Desktop.
Save tappleby/fb491c2b7598b664a219 to your computer and use it in GitHub Desktop.
search_api_elasticsearch + search_api_et integration
<?php
/**
* Implements hook_search_api_elasticsearch_fields_updated_alter().
*/
function search_api_et_elasticsearch_search_api_elasticsearch_fields_updated_alter(SearchApiIndex $index, &$fieldsUpdatedProperties) {
if ($index->item_type === 'search_api_et_node') {
$fieldsUpdatedProperties['id']['type'] = 'string';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment