Moodle 37 in admin/tool/task/cli/
there are two related for search ...
\core\task\search_index_task */30 * * * * *
\core\task\search_optimize_task 15 */12 * * * *
Running via command line in admin/tool/task/cli/
php schedule_task.php --execute="\core\task\search_index_task"
php schedule_task.php --execute="\core\task\search_optimize_task"
First one when working ...... looks like:
Execute scheduled task: Global search indexing (core\task\search_index_task)
Processing area: HTML block content
No new documents to index.
Processing area: Forum - posts
No new documents to index.
Processing area: Wiki - collaborative pages
No new documents to index.
Processing area: Wiki - activity information
No new documents to index.
Processing area: URL
No new documents to index.
Processing area: Survey - activity information
No new documents to index.
Processing area: SCORM package - activity information
No new documents to index.
Processing area: File
No new documents to index.
Processing area: Quiz - activity information
No new documents to index.
Processing area: Page
No new documents to index.
Processing area: External tool - activity information
No new documents to index.
Processing area: Lesson - activity information
No new documents to index.
Processing area: Label
No new documents to index.
Processing area: IMS content package - resource information
No new documents to index.
Processing area: Glossary - entries
No new documents to index.
Processing area: Glossary - activity information
No new documents to index.
Processing area: Forum - activity information
No new documents to index.
Processing area: Courses
No new documents to index.
Processing area: Folder
No new documents to index.
Processing area: Feedback - activity information
No new documents to index.
Processing area: Database - entries
No new documents to index.
Processing area: Database - activity information
No new documents to index.
Processing area: Choice - activity information
No new documents to index.
Processing area: Chat - activity information
No new documents to index.
Processing area: Book - chapters
No new documents to index.
Processing area: Book - resource information
No new documents to index.
Processing area: Assignment - activity information
No new documents to index.
Processing area: Users
No new documents to index.
Processing area: Messages - sent
No new documents to index.
Processing area: Messages - received
No new documents to index.
Processing area: Course sections
No new documents to index.
Processing area: Course custom fields
No new documents to index.
Processing area: Workshop - activity information
No new documents to index.
... used 432 dbqueries
... used 0.40577483177185 seconds
Scheduled task complete: Global search indexing (core\task\search_index_task)
In GUI:
advanced features ... Enable Global Search ... default is no ... have to enable.
In Site administration -> Plugins -> Search -> Manage global search
Search Setup
Do the steps in order
Step Status
1. Select search engine Simple search
2. Enable search areas Yes
3. Setup search engine Yes
4. Index data Yes
5. Enable global search Yes
Also Searchable courses has options for what to search
3.9 is pretty much ditto!
'SoS', Ken