Add a search function to your Moodle site. This allows Moodle users to search for courses and resources within them. Searches can be site-wide or in a specific course. Users can search from the search page (http://your.moodle.url/blocks/search), or you can add the search box as a block on your course pages.
Simply clone the repo to your moodle/blocks directory
$ cd /path/to/moodle/blocks
$ git clone https://github.com/antriver/moodle-block_search.git search
Then login to your Moodle as admin and it will install. Visit http://your.moodle.url/blocks/search to perform a search.
Access the settings for the block at Site Administration > Plugins > Blocks > Seach Here you can choose which tables in the database to look for results in and change caching options (by default search results will be cached for 1 day).
This is distributed with the hope that it will be helpful to others, but with no warranty or guarantee that it works whatsoever. This should be treated as beta software and is likely to be buggy. Back up your data before isntalling, and use at your own risk!
Test on Moodle 2.8.3+ with Postgres and MySQL databases.
Apparently it doesn't work with MS SQL databases.
Created by Anthony Kuske, with help from Adam Morris, at Suzhou Singapore International School