Closed (fixed)
Project:
Search API
Version:
7.x-1.22
Component:
General code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2017 at 00:42 UTC
Updated:
25 Mar 2020 at 04:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyI haven't worked that much with file entities, so I'm not sure. It doesn't seem like it, though, at a glance. What you'd most likely have to do is write a small data alteration plugin to either add a boolean "is public" property (see
SearchApiAlterAddUrlfor an example) or just remove all files in the private folder during indexing (seeSearchApiAlterNodeStatusfor an example).Either of those might be handy to others, too, so if you end up implementing either of this, feel free to re-open this issue as a feature request (or open a new one) and post it as a patch. (As for how to distinguish public from private files: probably look at the URI? Not sure myself.)
Without custom code, though, I don't think it's possible, or at least I wouldn't know, how.
Comment #4
pandaski commentedWrote a data alteration plugin regarding this issue
Pls help for your kindly review and test so I can improve it, thanks