What is Global search?
- Global search lets you search everywhere on the Moodle site that you have access to. A student can search their courses for particular lecture notes, for example, or a teacher could search for subject-related activities.
- The feature needs to be enabled by the administrator and a search box is then available next to the user menu.
- A Global search block may also be added to course pages.
What can I search for?
You can search for your courses, activities information and some activities contents like forum posts, book chapters, glossary entries or collaborative wikis pages. We will add more contents in future Moodle versions. Developers interested in adding plugin’s contents to global search may be interested in looking at the Search API.
How does it work?
- Click the search icon by the user menu and type a search term into the box that appears, or type into the box in the Global search block if enabled.
- On the next screen, you can simply click the search button to search everywhere, or expand the Filter to search in specific areas:
- You will then see results displayed from all areas of Moodle you have access to:
Solr search query features
You can improve your search using any of the following search query features:
- Specifying the field to be searched by prefixing the search query with ‘title:’, ‘content:’, ‘name:’, or ‘intro:’ e.g.’title:news’ returns results with the word ‘news’ in the title
- Boolean operators (‘AND’, ‘OR’, ‘NOT’) to combine or exclude keywords
- Wildcard characters (‘*’ or ‘?’ ) to represent characters in the search query
- Proximity searches (‘~’) e.g. mood~2 returns “moodle” (2 letters away from “mood”), Moodle Australia~3 returns results containing “Moodle HQ in Perth, Australia” (the queried terms were within 3 words of each other)
- Boosting terms (‘^’) to boost certain words or phrases e.g. “Perth Australia”^5 “Australia” will return results with the phrase “Perth Australia” as more relevant.
Note: The above features are only available when using the Solr search engine.