Please check this page frequently.  Updates to code for integrating search for sites will be provided here.

OSU Search lets users search for your content across all of OSU. No matter where they type in their query, results from across OSU will be displayed for any visitors.

As of January 1st, 2010.  OSU has switched to using the Google Search Appliance.

How can you tell if you are using the old search?

Simple.  If your search results goes to search.oregonstate.edu/web in the url string, you are on the old search.  If you are using Drupal (see below), it means custom code was inserted and will need to be changed by you or whomever helped develop your site.  If you need assistance, contact CWS.

What does this mean to you?

If you are a site hosted by Central Web Services using OSU Drupal 5 or OSU Drupal 6 hosted solutions, the search switchover will be transparent and no action needs to be taken.  Please note, if you have installed drupal or other software solutions yourselves, and not using the centrally hosted CWS solution, you will be responsible for switching these over.

If you are maintaining static sites, whether hosted with CWS or not, with html code embedded for using the Nutch search engine (as referenced in the form with a url of search.oregonstate.edu/web) then you will need to replace the code with one of the two following options:

Code

We have two methods for you to include a search box into your website. The first method and preferred method is using PHP or another programming language. The first method ensures that when we add new features to search boxes in the future, your website we’ll get the updates. The second method is only recommended if you have static html websites.

Using PHP (preferred)

To search all of OSU, paste the code below in your php file. If you are
using any other programming language, you basically have to create an array
and turn it into a json string. Then request the url over the web.


$options = array(
'url' => 'http://oregonstate.edu/cws'
);
$json = json_encode($options);
$url = 'http://search.oregonstate.edu/libs.php?q=osusearch_searchbox&o='.urlencode($json);
echo file_get_contents($url);

Using HTML

For sites using static HTML, please use the link below to contact us and we will help you set up a search box for your site.

If you have questions regarding this process, use the contact form and select Search to send us your question.

Print Friendly, PDF & Email

Comments are closed.