How to stop continues to search in subsequent folders

Hi, I have a small issue with the own cloud search function, when I search for something in a specific folder it’s showing the other folder contents/details also related to what I search for. is there any option or method to stop the subsequent folder search option?

thank you in advance.