searching for just "~patch" will not return anything because you were searching for nothing, which returns nothing, and then removing pages that contain the word "patch" from the empty list, which of course still returns nothing.

Make this proper case
Searching for just "~patch" will not return anything because you were searching for nothing, which returns nothing, and then removing pages that contain the word "patch" from the empty list, which of course still returns nothing.