You are looking for the dbsearch addon, By default its installed in the NodeBB plugin list but not activated. The only thing you have to do is activate it.
I have to say that programmatically being able to show and hide content in a widget is fabulous. I now have a Global > Global Header widget that displays an image and text only when it is the "home" page.