diff --git a/appinfo/app.php b/appinfo/app.php
index d333a717..ef739114 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -31,4 +31,4 @@ namespace OCA\Bookmarks\AppInfo;
'name' => \OC_L10N::get('bookmarks')->t('Bookmarks')
));
-\OC_Search::registerProvider('OCA\Bookmarks\Controller\Lib\Search');
+\OC::$server->getSearch()->registerProvider('OCA\Bookmarks\Controller\Lib\Search', array('apps' => array('bookmarks')));
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 382364ce..017c1805 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -6,7 +6,7 @@
AGPL
Arthur Schiwon, Marvin Thomas Rabe, Stefan Klemm
- 4.93
+ 8
true
166042
0.4