Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a site using Search API Entity Translation, file fields were no longer being indexed. The test for whether a file field belonged to a node was failing, since the entity type returned was search_api_et_node.
The included patch uses the SearchApiDataSourceControllerInterface::getEntityType() call to determine the proper entity type, rather than querying the item_type property directly.
A similar issue was found in Search API Ranges:
Comment | File | Size | Author |
---|---|---|---|
detect_file_fields.patch | 706 bytes | jmdeleon |
Comments
Comment #1
Yaron Tal CreditAttribution: Yaron Tal commentedGot the same issue, patch worked for me.
Comment #3
izus CreditAttribution: izus commentedThanks all for the patch and the test
this is now merged to 7.x-1.x branch