Instead of using
$this->app try using
This is because non of the inherited controller classes, i.e.
Illuminate\Routing\Controllers\Controller have an app property on them.
As a note you can use
app('SearchEngine') which is the equivalent of
app()->make('SearchEngine') as a shortcut to making your object.