There should be a more intuitive option to search for local files only, excluding results from shared media repository.
Current option (the 'local:' prefix) was added in https://gerrit.wikimedia.org/r/#/c/140567/ (T63061: CirrusSearch: Add advanced search option to only search local files)
See also:
*T32239: Allow searching of only local hosted files
*T67459: Allow option for omitting results from a repository when searching for files