Ability to disable indexing

I have no need for the files to be indexed and all images shown. I often store multiple iterations of my Mac Photos library on the storage and indexing never finishes. It would be good to have a global on / off switch in the UI and / or the ability to add a .noindex file to the root of a directory to have indexing ignore that directory.