Table des matières

Lucene global search engine: User guide

Adding the search block

Add a search block on the page of your choice

Introduction

Search results from the engine are displayed on a full-screen page. The results displayed depend on the indexing choices made by the administrator in the central configuration.

For example, one could choose to index only the resources of a certain type, or only those of the shared library.

In this example, we find users and resources:

To perform a full-text search, enter the searched term in the input area and click the “Search” button to get the number of items found and their list below the engine.

Advanced syntax in simple searches

The Lucene engine offers a number of syntaxes to refine searches or the priorities of result output.

General documentation on these syntaxes is available (in English) here: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html

To perform an advanced search, follow the “Advanced search” link, complete the advanced search form, and click the “Search” button to get the number of items found and their list below the engine.

Note: a link is present on the interface to return to the simple search.

:!: Warning: a space will only be taken into account if it is included in an explicit string, as in Test_1 for example. If you search for the occurrence Test and exclude Test 1 from your search, you will get zero results.

Advanced search example:

Local plugin configuration (administration)

Site admin/search/manage global search

  1. Select a search engine: This first menu indicates the engine used (Solr)
  2. Enable search areas: Target areas of the search via checkboxes (assignments, folders, files, courses, urls, etc.)
  3. Set up the search engine:
    1. Index data: Yes/No:
    2. Enable global search: If this setting is enabled, data is indexed and synchronised by means of a scheduled task (CRON)

:!: For this last point, the function must first be enabled in the site's advanced features: Your moodle/admin/settings.php?section=optionalsubsystems

- Global search engine

Global search engine

Local plugins/search/manage global search

PDF support

Microsoft Word documents support

  1. Word documents support: System path to the doctotext converter for Word. By default lib/antiword/linux/usr/bin/antiword
  2. Environment variable for MSWord conversion: By default ANTIWORDHOME=/var/www/formation-enligne31.com/local/search/lib/antiword/linux/usr/share/antiword

Discovery of indexable objects

Search on core elements

Enabling module indexing

Global activation

Credits

Back to the component index - Back to plugins index - Back to catalogue - Index by functional subsets