Search with path and text returns (2) results when only (1) is expected

I hear tell this is a known bug but don’t see a reference. Now there is.

Why does the following core search query return a count of (2)?

path:“Test Directory” “premise”

The only file in this directory is a single markdown file containing:

filename: Test File Search

Test File Search

premise

another section

another word

This next query returns the expected count of (1) file:
“Test File Search” “premise”

1 Like