diff --git a/core/js/core.json b/core/js/core.json
index 101a88cd4f02903a37dd691eb487aa8e2fbc1b17..2fb7842624cddd2bf30fe18afb8eec13815a1ba2 100644
--- a/core/js/core.json
+++ b/core/js/core.json
@@ -23,6 +23,6 @@
 		"config.js",
 		"multiselect.js",
 		"oc-requesttoken.js",
-		"../../search/js/search.js"
+		"../search/js/search.js"
 	]
 }
diff --git a/core/js/js.js b/core/js/js.js
index 579bf09b2e421721e403fb654d80509821b76d04..234cc328dfb82994d347099a5af7d88d36a772a0 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -74,7 +74,7 @@ var OC={
 	config: window.oc_config,
 	appConfig: window.oc_appconfig || {},
 	theme: window.oc_defaults || {},
-	coreApps:['', 'admin','log','search','settings','core','3rdparty'],
+	coreApps:['', 'admin','log','core/search','settings','core','3rdparty'],
 	menuSpeed: 100,
 
 	/**
diff --git a/core/routes.php b/core/routes.php
index ced70898f501ce973d239aacf40e446b6d7bfdfe..defbb695a71b57df9ac0c1282f92c580b3a51363 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -22,8 +22,8 @@ $application->registerRoutes($this, array('routes' => array(
 /** @var $this OCP\Route\IRouter */
 // Core ajax actions
 // Search
-$this->create('search_ajax_search', '/search/ajax/search.php')
-	->actionInclude('search/ajax/search.php');
+$this->create('search_ajax_search', '/core/search')
+	->actionInclude('core/search/ajax/search.php');
 // AppConfig
 $this->create('core_ajax_appconfig', '/core/ajax/appconfig.php')
 	->actionInclude('core/ajax/appconfig.php');
diff --git a/search/ajax/search.php b/core/search/ajax/search.php
similarity index 100%
rename from search/ajax/search.php
rename to core/search/ajax/search.php
diff --git a/search/css/results.css b/core/search/css/results.css
similarity index 100%
rename from search/css/results.css
rename to core/search/css/results.css
diff --git a/search/js/search.js b/core/search/js/search.js
similarity index 97%
rename from search/js/search.js
rename to core/search/js/search.js
index 57de07bf7fda06dbf69a60fecbf7307b5d21d92a..c6542ffc138090726a033e3f6ce91a1e8a110ee2 100644
--- a/search/js/search.js
+++ b/core/search/js/search.js
@@ -97,7 +97,7 @@
 			 */
 			this.search = function(query, inApps, page, size) {
 				if (query) {
-					OC.addStyle('search','results');
+					OC.addStyle('core/search','results');
 					if (typeof page !== 'number') {
 						page = 1;
 					}
@@ -128,7 +128,7 @@
 						$status.html(t('core', 'Searching other places')+'<img class="spinner" alt="search in progress" src="'+OC.webroot+'/core/img/loading.gif" />');
 
 						// do the actual search query
-						$.getJSON(OC.generateUrl('search/ajax/search.php'), {query:query, inApps:inApps, page:page, size:size }, function(results) {
+						$.getJSON(OC.generateUrl('core/search'), {query:query, inApps:inApps, page:page, size:size }, function(results) {
 							lastResults = results;
 							if (page === 1) {
 								showResults(results);
@@ -364,7 +364,7 @@ $(document).ready(function() {
 	$('#app-content')
 		.append($searchResults)
 		.find('.viewcontainer').css('min-height', 'initial');
-	$searchResults.load(OC.webroot + '/search/templates/part.results.html', function () {
+	$searchResults.load(OC.webroot + '/core/search/templates/part.results.html', function () {
 		OC.Search = new OCA.Search($('#searchbox'), $('#searchresults'));
 	});
 });
diff --git a/search/templates/part.results.html b/core/search/templates/part.results.html
similarity index 100%
rename from search/templates/part.results.html
rename to core/search/templates/part.results.html