Created
June 11, 2015 22:03
-
-
Save tappleby/fb491c2b7598b664a219 to your computer and use it in GitHub Desktop.
search_api_elasticsearch + search_api_et integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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