Just use this plugin and you can easily do that

https://wordpress.org/plugins/search-exclude/