Learn Moodledev – Adding Global search to your Moodle plugins by Mike Churchward #Moodledev

Global search feature which was added to the Moodle core in Moodle 3.1 and lets you search everywhere on the Moodle site that you have access to. A student can search their courses for particular lecture notes, such as, or a teacher could search for subject-related activities.

Moodle core activities are included in the search results by default but the Moodle plugins developers needs to change their plugins to provide code to search API to include results in the search results. We have already posted about the Global search from developer’s perspective here.

Global search needs a search engine and Moodle docs provides the required documentation for setting up your own Solr server and installing PHP Solr extension. You can refer to the documentation here.

Learn Moodledev - Adding Global search to your Moodle plugins by Mike Churchward #Moodledev

Mike Churchward – Executive Director of POET group, wrote a series of good starting tutorials for plugin developers to add the global search capability in the Moodle plugins. For demonstration, he added the search feature in the Questionnaire plugin.

You can check out the original posts as below:

Are you a Moodle plugin developer looking for adding the global search feature to your plugin? Have you already added the global search to your plugin? Share your experience with us in the comments section below.

Reference Links:

Jaswinder Singh

Jaswinder Singh, passionate about using Moodle in improving the Indian Education System and reaching the students in far flung areas where still education seems to be a impossible prospect of life. He is the author of the popular Moodle Book "How to use Moodle 2.7". In October 2016, Jaswinder was elected as the Moodle User's Association Committee member - the first to make it from India.

Related Articles