The old 'advanced' search interface allowing selection o/ filtering by namespace provided an option to "Remember selection for future searches"
The AdvancedSearch extension could do a similar thing.
In the advanced search form when closed:
Estimation for the checkbox not being inside the "search in" box: 2
Alternative with checkbox outside of drop-down: