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:

https://www.drupal.org/node/2321269

CommentFileSizeAuthor
detect_file_fields.patch706 bytesjmdeleon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Yaron Tal’s picture

Got the same issue, patch worked for me.

  • izus committed 2500ae2 on 7.x-1.x authored by jmdeleon
    Issue #2366337 by jmdeleon: Files not indexing while using Search API...
izus’s picture

Status: Active » Fixed

Thanks all for the patch and the test
this is now merged to 7.x-1.x branch

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.