moosh icon indicating copy to clipboard operation
moosh copied to clipboard

course-config-set course fullname not triggering to be indexed in globalsearch with solr

Open marcoblancas opened this issue 2 years ago • 1 comments

  • moosh version: 1.5
  • moodle version: 3.11.11
  • database: postgres 13.8
  • php version: 7.3.0
  • operating system: debian 11

Actual behaviour

When you rename the fullname of an existing course with course-config-set the new course name is never reindexed in the globalsearch when the solr engine is enabled. The same happens with other fields like shortname and maybe others.

Expected behaviour

When the scheduled task \core\task\search_index_task runs the new content should be indexed.

Steps to reproduce

In a site with solr as global search engine enabled. Rename the fullname of one of your courses. Run the \core\task\search_index_task Make a search using the course shortname of the renamed course

marcoblancas avatar Feb 28 '23 13:02 marcoblancas

Maybe a course-config-set should update the timemodified and cacherev columns in mdl_course in order that \core\task\search_index_task reindex the course in the global search engine.

marcoblancas avatar Feb 28 '23 16:02 marcoblancas