Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcoblancas opened this issue Feb 28, 2023 · 1 comment

Comments

@marcoblancas
Copy link

  • 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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant