Module 2: Indexing
A search can only find what is in its index. This module follows content into the index: at publish, through the delayed-indexing queue and its cronjob, in a full rebuild, and through the class setting that decides which fields are indexed at all.
At a glance
| Course | Search |
| Duration | 2 hours (four lessons) |
| Lessons | 4 |
| Level | Intermediate |
| Format | Hands-on; administration and terminal on the learner's own training installation |
Lessons
| Lesson | Duration | What learners do |
|---|---|---|
| 2.1 Indexing at publish | 25 min | Prove that drafts are not found, new versions replace words, moves need no reindex |
| 2.2 Delayed indexing and the indexcontent cronjob | 35 min | Switch on delayed indexing, watch the queue, run the cronjob, switch it off |
| 2.3 Rebuilding the search index | 30 min | Run updatesearchindex.php with and without --clean and plan it for a live site |
| 2.4 Choosing searchable attributes | 30 min | Read and change the Searchable flag of a class and rebuild |
Preparing this module
- One training installation per learner (lessons 2.2 and 2.4 change settings and a class; never share an installation for this module).
- A terminal in the installation root for every learner, and the name of the public siteaccess written on the board.
- Check before the class that
DelayedIndexingisdisabled(php bin/php/console exp:ini get site.ini/SearchSettings/DelayedIndexing). - Rehearse lesson 2.3 once to know how long a rebuild takes on the training content.
Timing plan
| Time | Item |
|---|---|
| 0:00 | Lesson 2.1 (25 min) |
| 0:25 | Lesson 2.2 (35 min) |
| 1:00 | Lesson 2.3 (30 min) |
| 1:30 | Lesson 2.4 (30 min) |
| 2:00 | End of module |
Related pages
- Search: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.