If you use wildcards (how *), locateconsider the pattern an absolute path. Therefore, you can, for example, do:
locate "$PWD*/abc_file"
Here all files abc_fileunder your $PWDand its subfolders will be found (while they are in the location database).
source
share