I have a CT cv_book_display, which has three fields of file type.
They are: field_files, field_book_cover, field_service_files.
At the index configuration page i check only attachments_field_files field. However, with enabled Debug extraction of attachments i see, that files, related to field_book_cover are being extracted.
Am i missing something or is this really a bug?

I've taken a peek at this function which is called right before getFileContent($file) function inside alterItems(array &$items).
I suppose, this is the place, where we should check if field was selected. But i'm not sure. Could anyone provide me with a clue?

Update

I suppose, we have to filter fields, which will be used in alterItems(array &$items) function. Check if field is inside search index and only then go to the getFilecontent function.

CommentFileSizeAuthor
#3 unnecessary_fields-2869139-3.patch1.44 KBsardis

Comments

Sardis created an issue. See original summary.

sardis’s picture

Issue summary: View changes
sardis’s picture

StatusFileSize
new1.44 KB

Here's the patch to demonstrate what i mean.
Still, i require some guidance about this. Maybe this is not even required.
Review issue, please.

sardis’s picture

Status: Active » Needs review

Changing issue status.

sardis’s picture

Title: Unnecessary fields indexing » Unnecessary file fields extraction

Make proper issue title.

sardis’s picture

Issue summary: View changes
izus’s picture

i just tested and can confirm this is a bug

  • izus committed da7d921 on 7.x-1.x authored by Sardis
    Issue #2869139 by Sardis, izus: Unnecessary file fields extraction
    
izus’s picture

Status: Needs review » Fixed

merged.
Thanks

Status: Fixed » Closed (fixed)

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