<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">According to the following Spotlight FAQ, Spotlight apparently doesn't index, among other things, “[f]iles whose invisible file-system attribute has been enabled” or "[f]iles within hidden or invisible folders”:<div class=""><br class=""></div><div class=""><a href="http://www.thexlab.com/faqs/stopspotlightindex.html" class="">http://www.thexlab.com/faqs/stopspotlightindex.html</a></div><div class=""><br class=""></div><div class="">Not sure if this is still true, but apparently it may have been true at some point.  The FAQ cites an Apple Knowledge Base article, but the article has changed and there isn’t (as far as I can tell) an affirmative statement the current version of that article to back up the statements in the FAQ.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 19, 2021, at 21:19, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Nov 18, 2021, at 08:47, Eric Gallager wrote:<br class=""><br class=""><blockquote type="cite" class="">Didn't MacPorts start doing `chflags hidden` on<br class="">/opt/local/var/macports at some point to stop Spotlight from indexing<br class="">it?<br class=""></blockquote><br class="">You appear to be correct, based on this commit message:<br class=""><br class=""><a href="https://github.com/macports/macports-base/commit/cf42f8ab68e9ea8c6ded7ce2961d6829d73274d3" class="">https://github.com/macports/macports-base/commit/cf42f8ab68e9ea8c6ded7ce2961d6829d73274d3</a><br class=""><br class="">I did not realize / remember this.<br class=""><br class="">I do not know if setting it to hidden actually causes Spotlight not to index it, just that the commit message claims it does.<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>