An easy way would be to add a "Web Part" to Sharepoint with some Javascript that will :
- get your keyword you put in sharepoint url
- then in JS you put the keyword in Sharepoint search box, and click on submit
So in 2 steps :
when you type a keyword in your search box outside SharePoint, and click on "Search" button, it redirects to sharepoint page (with search box) with your keyword in the url, like this : ?search=
then you add some Javascript in SharePoint for retrieving your keyword in sharepoint url and fill sharepoint search engine and submit it.
Code for getting the keyword from sharepoint url :
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
};
var keyword = getUrlParameter('keyword ');
And then :
$("#sharepoint_searchbox").val(keyword);
$("#sharepoint_submit_subtton").click();