Advance course search

Admin tools ::: tool_coursesearch
Maintained by Shashikant Vaishnav, Marina Glancy, My mugMichael de Raadt
Course search plugin is replacement of existing course search with the more better performance & extra features.

Advance course search 2.5 (Build: 2013051400)

Moodle 2.5, 2.6, 2.7, 2.8
Released: Friday, January 9, 2015, 2:19 PM
=== Advanced Course Search(Solr integration with moodle course schema) ===


The plugin is integration of moodle course search with the apache solr search platform.
Solr search can be used as a replacement for existing course search and boasts both
extra features and better performance. Among the extra features is the ability
of being flexible, case-insensitive, works with non-latin languages, fast, auto complete suggestions,
facting and can sort results by relevance(score).

The module comes with a schema.xml, solrconfig.xml, and protwords.txt file which
must be used in your solr installation.


Prerequisite: Java 5 or higher (a.k.a. 1.5.x), PHP 5.1.4 or higher, moodle 2.5 or higher.

Step 1:- ==== Installing coursesearch theme that renders the search / Placing the renderer file ====

Note:- You can try how the search results will look like by going to /course/example.php without installing coursesearch theme or modifying rederers.php.

Here is two options either you may replace/copy your existing theme renderer with the one found in
search_coursesearch theme( theme). OR you may install coursesearch theme itself.

replacing /copying the renderer file to your theme.

1. Copy renderers.php file from search_coursesearch theme replace it with your theme's renderer file.

2. Standard moodle theme doesn't have any renderer file so you may simply copy this to your
theme directory.

3. Rename renderer class name according to your theme name.

for example if you are using theme 'clean'.
then rename the class name to 'theme_clean_core_course_renderer'.

OR you may either use search_coursesearch theme. This is also based on clean theme.

1. Download the coursesearch theme from here (

2. Extract the theme folder. and put it under moodle installation theme directory.

3. If you are already logged in just refreshing the browser should trigger your Moodle
site to begin the install 'Plugins Check'.

4. If not then navigate to Administration > Notifications.

Step 2:- === Installing admin tool that manage solr configuration & options to index courses. ===

1. Download the admin tool from here. (

2. Extract the Course Search folder. Put it under moodle installation/admin/tool directory.

3. It should be named coursesearch. If you are already logged in just refreshing the browser should trigger your Moodle
site to begin the install 'Plugins Check'.

4. If not then navigate to Administration > Notifications.

Step 3:- ==== Installing Solr & placing the plugin Schema ===

Download the latest Solr 4.4.0 release from:

Unpack the tarball somewhere not visible to the web (not in your apache docroot
and not inside of your moodle directory).

The Solr download comes with an example application that you can use for
testing, development, and even for smaller production sites. This
application is found at apache-solr-4.4.0/example.

Move apache-solr-4.4.0/example/solr/collection1/conf/schema.xml and rename it to
something like schema.bak. Then move the schema.xml that comes
with moodle course search admin tool plugin to take its place.

Similarly, move apache-solr-4.4.0/example/solr/collection1/conf/solrconfig.xml and rename
it like solrconfig.bak. Then move the solrconfig.xml that comes with the
moodle course search admin tool plugin to take its place.

Finally, move apache-solr-4.4.0/example/solr/collection1/conf/protwords.txt and rename
it like protwords.bak. Then move the protwords.txt that comes with the
moodle course search admin tool plugin to take its place.

Make sure that the conf directory includes the following files - the Solr core
may not load if you don't have at least an empty file present:

Now start the solr application by opening a shell, changing directory to
apache-solr-4.4.0/example, and executing the command java -jar start.jar

Test that your solr server is now available by visiting
http://localhost:8983/solr/admin/ (the exact url depends over your configuration)

Step 4:- === Testing with ping to solr ===

1. Advance Course can be found under :-

Administration->course->Course search settings(URL:-

2. Give the solr configuration options here:-

Solr Host:- localhost or
Solr Port:- 8983 (Default port for Solr )
Solr Path :- /solr (Configuration directory for solr)
Solr Username :- if you're using authetication with solr. Give your http authetication username here.
Solr Password :- Give your solr http authetication password here.

3. Click on "Check Solr instance Setting". if it Shows ping successful(with an success image). Now click save changes.

4. Now click on "Index courses" to index all the courses. After successful indexing. It will come up with a success image.

5. Click on "Optimize" to optimize the existing indexes this improves solr performance and repair the indexes.

Enjoy the Search by going on page (

to configure navigation with the course search page goto Site administration -> Front page -> Front page settings.

If you find any issue with plugin. You may either use tracker or github to report the bug(

Some usefull links :-

General user documentation :-
Github wiki :-
Tracker of the project :-
Weekly reports :-

Good luck, Thanks.

Version information

Version build number
Version release name
2.5 (Build: 2013051400)
Can be updated from
2.5 (Build: 2013051400) (2013060102)
Stable version
MD5 Sum
Supported software
PHP 5.3, PHP 5.4, Moodle 2.5, Moodle 2.6, PHP 5.5, Moodle 2.7, PHP 5.6, Moodle 2.8

Version control information

Version control system (VCS)
VCS repository URL
VCS branch

Default installation instructions for plugins of the type Admin tools

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "mytool") in the "admin/tool" subdirectory.
  4. Visit to finish the installation