Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Global Search set-up.

Global Search set-up

From MoodleDocs
Revision as of 22:24, 29 November 2007 by Valery Fremaux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Global Search Block is the user-side visible part of the internal Global Search Engine of Moodle, wich is located in the "search" directory of the Moodle distribution.

The Global Search Block provides user with a search form interface, that will query all searchable entries in Moodle.

The searchable entries are "virtual documents" extracted from Moodle course data and database, that each activity module or block will provide to the search engine for indexing.

The search engine is based on an updated Lucene engine, part of the Zend framework.

Installing The Block

The search engine itself is being part of the Moodle distribution. The block is installed as standard, but is not used on the default layout.

Setup Of The Global Search Engine

The Global Search Engine must be activated and initialized before search can be performed.

1. Get in administrator mode

2. Go to the Experimental section in Administration menu.

3. Activate the Global Search Engine.

4. 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.

Note that for indexing physical files, you need to get additional converters that are in the CVS at contrib/patches/global_search_libraires. 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.

5. Go to the block, make a blank search

6. 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.

Beware : if you have many document, this process might be heavy and time spending. Try at night if possible.

7. The indexer will report you what has been indexed for each supported module.

8. Try a search.