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.
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:
- Adding search to your Moodle plugin
- Adding search to your Moodle plugin – part two
- Adding search to your plugin – Part three
- Adding search to your Moodle plugin – post-mortem
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.