It's not a built-in feature, you need the Google Search app for this, and you need to enable "Screen Search" in your Google Settings (open the Google app, tap the menu button on the left, go to Settings, go to Screen Search, and activate it). To use it just tap and hold the Home button and Google will use the contents currently being displayed to search relevant items.