If an an attachment is not set to be displayed, it is currently being indexed and returned as a result. Is it possible to exclude non-displayed attachments either from the index or from being returned as a result?

Comments

nick_vh’s picture

You can certainly do so with some custom code. I can't promise to fix this asap so it would be quicker if you look into a solution and post a patch? Would you be willing to do that?

nick_vh’s picture

Status: Active » Postponed
ki’s picture

This fix honors search_index view mode and won't index hidden attachments. This works when the file is parsed as part of the parent node. It does not cover when the file is a separate entity, in which case apachesolr_attachments_solr_document() should be fixed.