Update 2025:
If you encounter the error Possible unrecognized qualifier, searching for this term literally , then you need to use path: instead of filename:
Possible unrecognized qualifier, searching for this term literally
path:
filename:
e.g
your_search_term -path:package-lock.json