The module seems to index any files attached to a node using a "File" type field, but doesn't index files attached to a node using a "Media" type field. With media now in core, it's my default field for attaching files to nodes, and probably will be for a lot of people.

Comments

George Bills created an issue. See original summary.

George Bills’s picture

Initial patch attached, but it needs some more testing. It also might be nice to refactor out functions for the three paths in addFieldValues() - (1) indexing a file (2) indexing a file field and (3) indexing a media field - but I didn't want to touch too many lines in the diff. The media field path also loads the full file entity, only to store just the id, and then load the full file entity from that id again, but again I didn't want to touch too many lines in the diff.

George Bills’s picture

Status: Active » Closed (duplicate)
Related issues: +#2896418: Support media (core) module

Arg, just noticed 2896418. Probably better to use that one since it seems more general.

ericdsd’s picture

Hi,
does some know if a similar solution exists for drupal 7, i mean to index files entity referenced bu media in a wysiwyg field ?