Hinweis: Sie sind auf den Seiten der Moodle 1.9 Dokumentation. Die Dokumentation der aktuellsten Moodle-Version finden Sie hier: Administration des Blocks "Globale Suche".

Administration des Blocks "Globale Suche"

Aus MoodleDocs
Wechseln zu:Navigation, Suche

Baustelle.png Diese Seite ist noch nicht vollständig übersetzt.

Siehe en:Global Search set-up

Der Block "Globale Suche" ist der Aspekt der internen globalen Suchmaschine von Moodle, die der Nutzer sieht und verwenden kann. Die Skripte sind im Verzeichnis /search der Moodle-Distribution hinterlegt. Dieser Block bietet dem Nutzer ein Suchformular, um alle durchsuchbaren Einträge der Moodle-Seite zu durchsuchen.

Durchsuchbare Einträge sind sozusagen "virtuelle Dokumente", die aus Kursdaten und der Datenbank erstellt wurde, und somit indexierte Inhalte der Aktivitäten und Blöcke darstellen.

Die Suchroutine basiert auf der Lucene Engine, die wiederum Teil des Zend Frameworks ist.


Den Block installieren

Die interne Suchmaschine selbst ist Bestandteil der Moodle-Standard-Distribution. Ebenso steht der Block zur Verfügung, wird jedoch nicht in den vordefinierten Kurslayouts per Voreinstellung aktiviert.

Einrichtung der Globalen Suche

Die zugrundeliegende Suchmaschine muss aktiviert und eingerichtet werden, bevor Suchläufe erfolgen können.

1. Melden Sie sich als Administrator an


2. Access Administration > Miscellaneous > Experimental.

3. Activate the Global Search Engine by checking the enableglobalsearch box.

4. Access the Global Search settings via the link in Administration > Modules > Blocks.

5. Edit sitewide parameters of the search block. You should NOT have to change anything, unless if the extra libs for converting files to text have been deployed in an unusual place.

Datei:global search params.jpg

Note that for indexing physical files, you need to get additional converters that are in the CVS at contrib/patches/global_search_libraries. I collected these converters for Windows and Linux support. Some of them may have addtional support for other OS distributions.

You may activate here for indexing physical files or not. Eventually change some path setup if needed.

VERY IMPORTANT : On Linux systems, check the converters have execution permission (X set).

6. Go to the block, make a blank search.

7. Browse to the "statistics". Being administrator, you'll have additional links to perform the first-time-indexing. Once done, the cron should update the indexes with deleted, updated and added keys.

Vorsicht: Verfügt Ihre Lernplattform über eine Vielzahl an Dokumenten, kann dies sehr zeit- und ressourcenaufwendig sein. Führen Sie diesen Prozess daher in Zeiträumen geringer Nutzung der Plattform durch, bspw. nachts.

8. Sie erhalten einen Bericht, was aus den unterstützten Modulen für künftige Suchen indiziert wurde.

9. Führen Sie eine Suche durch.

Converters "xxx to doc" credits

All converters were choosed being opensource.

  • Antiword is an open source for converting Microsoft(tm) Word format in to raw text.
  • Xpdf is an open source converter for extracting raw text from Adobe(tm) Pdf.

Additional converters were produced specially for Moodle

  • Powerpoint(tm) text extractor : a special extractor algorithme designed for Moodle. This algorithm is based on a raw recognition of the internal format of .PPT files, and is based on the Office 97(tm) format.
  • HTML and XML extractors : a simple extractor that strips out any tag and markup and keeps only CDATA sequences.

Unterstütze (also durchsuchbare) Module

unterstützte Standardmodule

  • Forum: Beitragstitel und Beiträge werden separat indiziert
  • Wiki: Wikiseiten werden indiziert
  • Chat: Chat-Sitzungen werden als einzelnes Dokument betrachtet und indiziert
  • Glossar: iGlossareinträge werden indiziert
  • Arbeitsmaterial: Alle Arbeitsmaterialien werden indiziert, einschließlich realer Dateien unterstützten Typs
  • Datenbank: jeder Datenbankeinträg wird als einzelnes Dokument betrachtet und indiziert
  • Lektion: Jede Lektionsseite wird als einzelnes Dokument betrachtet und indiziert.
  • Files: Global search does NOT index contents of documents that are stored in the Files area of the course. If you want to rely on global search, it is best to try to mention each document stored in the files area by title with a content description so they can be found more easily.

Search Scope

Searches all above modules (item title and contents) in all courses in which the current users is enrolled. Searching through directories: Global search does not serach in directories. Just linked documents will be indexed.

Non-core modules

  • Techproject: the technical project manager by Valery Fremaux

Support for other non-core modules

The search engine is extensible, and has a Document API for adding support for other modules. See the Developer Documentation.

Support for other physical document types

The Search engine has an extensible physical converter model, although adding formats may need change in the block itself (such as adding more configuration parameters). See the Developer Documentation.

See also