Site search in SS4

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

Silverstripe Version: 4.7.1

Question:

I have FulltextSearchable enabled in my config and a working site search. However, how do I exclude files in my assets folder (that are meant to only be viewable by logged in members) from appearing in search results?

In the FulltextSearchable API it warns:

  • CAUTION: Will make all files in your /assets folder searchable by file name
  • unless “File” is excluded from FulltextSearchable::enable().

How do I do this for member-only files?