There is an expand context setting in the search panel already.
You can also use a variety of search parameters, including regular expressions, to gain a richer search experience. For instance, you can search for file:someNoteName to only find notes with someNoteName in the title.
Does that help?