Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,090 of 9,090 pages
About the help in other languages
All help pages

Lesson 3.4: Search, practical task

A 45-minute practical task for the end of the Search course, find items with scope, advanced search and the content finder, switch on delayed indexing on a training installation, prove that new content waits for cron…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/assessments/module-03-administration-courses/search-practical-task.md

On this page

Lesson 3.4: Search, practical task

Search problems are nearly always "it is not found yet". In this task the learner first searches like an editor, then reproduces the most common indexing fault on purpose, fixes it, and leaves the installation as they found it.

Note

This is the trainer's own assessment, not an official certification. Learners change settings on their own training installation only; never on a live site.

At a glance

CourseAssessments and practical exercises
ModuleModule 3: Assessing the administration courses
Duration70 minutes (5 briefing, 45 task, 20 scoring)
LevelIntermediate
AudienceLearners at the end of the Search course
PrerequisitesLesson 3.3; administrator access and a shell on the learner's own training installation

Learning objectives

Learners who pass this task have shown that they can:

  • find items with the search scope, the advanced search and the content finder;
  • switch on delayed indexing and explain its effect;
  • index waiting content with the default cron part;
  • rebuild the index from the shell;
  • restore the original setting and check it.

Trainer's notes

How to run it

  1. Before: one training installation per learner with a site package that has content (articles in several folders). Learners need a shell in the installation root.
  2. Briefing: hand out the steps and the rubric; 45 minutes. Remind learners to note every command they run.
  3. Scoring: read the learner's notes and check the final setting with ./console exp:ini get site.ini/SearchSettings/DelayedIndexing --allow-root-user.

Common questions

The new article is found at once, even with delayed indexing on. The INI cache was not cleared after the change; that is evidence for the rubric, not a broken lab.

Can the cron part be run from Setup > Cronjobs instead? Yes, the part that holds indexcontent.php.

Pitfalls

  • Settings left changed. A learner who forgets step 10 leaves delayed indexing on; the next course meets a confusing installation. It is scored.

Hands-on exercise

The task, as handed to learners. Use your own training installation; write down every command.

  1. In the administration, search for a word that appears in several articles. Then narrow the same search with Search scope to Current location below one folder. Note both result counts.

  2. Open Advanced search. Search for the same word with Class set to Article and Published set to the last year. Note the count.

  3. Note the node number of one article from its page. Open the dashboard, then open that article again by typing its number in the Content finder.

  4. Switch on delayed indexing in settings/override/site.ini.append.php:

    [SearchSettings]
    DelayedIndexing=enabled

    and clear the INI cache:

    php bin/php/ezcache.php --clear-tag=ini --allow-root-user
  5. Create and publish an article titled Indexing test <your name> with a word nobody else uses, for example zebracrossing.

  6. Search for that word. Note the result.

  7. Run the default cron part by hand:

    php runcronjobs.php -s <your public siteaccess> --allow-root-user

    (or run it from Setup > Cronjobs). Search again and note the result.

  8. Rebuild the whole index:

    php bin/php/updatesearchindex.php --clean --allow-root-user

    Search for the word once more.

  9. Write two sentences: why step 6 found nothing, and what a host must make sure of on a site with delayed indexing.

  10. Remove the two lines from step 4 (or set DelayedIndexing=disabled), clear the INI cache again and check the value with ./console exp:ini get site.ini/SearchSettings/DelayedIndexing --allow-root-user.

Expected result

  • Notes with three result counts that make sense (scoped and filtered counts no larger than the first).
  • Step 6 found nothing; step 7 and step 8 found the new article.
  • Two correct sentences: publishing only queued the object; cron must run the default part.
  • The final check prints disabled.

Scoring rubric

Criterion0: Not shown1: Partly2: Mostly3: FullyEvidence
Searching in the administrationNothing foundOne of scope, advanced, finderTwo of themAll three, counts notedThe notes
Delayed indexing switched onNot doneSetting written, cache not clearedOn, effect not observedOn, step 6 shows nothing foundThe notes, the settings file
Indexing by cronNot doneWrong part or siteaccessRan, result not checkedRan, article foundThe notes, the command
Rebuilding the indexNot doneRan without --clean and without explanationRan, result not checkedRan with --clean, article foundThe notes
Leaving it clean (must)Setting still enabledChanged, cache not clearedDisabled, not checkedDisabled, cache cleared, checkedexp:ini get output

Pass: 10 of 15 points or more and Leaving it clean at 2 or 3.

Quiz

Debrief questions to ask after scoring.

  1. In which table did your article wait between step 5 and step 7?
  2. When is delayed indexing worth switching on for real?
  3. On a large site, when would you run step 8, and as which user?
  4. What did step 1 teach you about the scope of a search?
Answers
  1. ezpending_actions (10.8).
  2. When publishing large objects is slow; it makes publishing faster, at the price of depending on cron (Search backends).
  3. In a quiet hour, as the site's user (Search backends).
  4. A scope below the current location finds only what is below it (Searching).

Further reading

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x