Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-72791

Custom course field content for new course not found in global search

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • Hide
      1. Ensure cron is disabled so we can run tasks manually
      2. Login as admin
      3. Navigate to Advanced features in site administration
      4. Tick Enable global search and save changes
      5. Navigate to Courses > Course custom fields in site administration
      6. Add a new category
      7. Add a Checkbox field
      8. Add a Date and time field
      9. Add a Short text field
      10. Navigate to Courses > Add a new course
      11. Choose a full/short name
      12. Expand Other fields
      13. Enter the following in the Short text field: FROGFROG
      14. Press Save and display
      15. Navigate to Server > Tasks > Scheduled tasks in site administration
      16. Run the Global search indexing task
      17. Confirm you see the following:

        Processing area: Course custom fields
          Processed 3 records containing 3 documents, in 0.1 seconds.
        

      18. Run the following query in your database, and note the results (the itemid of each record corresponds to the ID of the {customfield_data} table, not the {course} table):

        SELECT * FROM moodle.m_search_simpledb_index WHERE areaid = 'core_course-customfield';
        

      19. Navigate back to Site home
      20. Open the Search element in the page header
      21. Search for the following word: FROGFROG
      22. Confirm you see your test course in the search results
      23. Re-run the previous SQL query
      24. Confirm the results are identical to last time
      Show
      Ensure cron is disabled so we can run tasks manually Login as admin Navigate to Advanced features in site administration Tick Enable global search and save changes Navigate to Courses > Course custom fields in site administration Add a new category Add a Checkbox field Add a Date and time field Add a Short text field Navigate to Courses > Add a new course Choose a full/short name Expand Other fields Enter the following in the Short text field: FROGFROG Press Save and display Navigate to Server > Tasks > Scheduled tasks in site administration Run the Global search indexing task Confirm you see the following: Processing area: Course custom fields Processed 3 records containing 3 documents, in 0.1 seconds. Run the following query in your database, and note the results (the itemid of each record corresponds to the ID of the { customfield_data } table, not the { course } table): SELECT * FROM moodle.m_search_simpledb_index WHERE areaid = 'core_course-customfield'; Navigate back to Site home Open the Search element in the page header Search for the following word: FROGFROG Confirm you see your test course in the search results Re-run the previous SQL query Confirm the results are identical to last time

      We use a custom course field where we put teachers last names to make it easier to find the courses where to enroll new teacher Moodle members.

      This worked fine up to now.

      I create a new course, file the custom course field with teachers name, even start the indexing all new, but still can't find the new course where I put the name. The old ones are all fine and are being found. Even if I change the content of the CuCoFi in old courses the global search finds the new entry. But it never finds the entry in the newly created course.

            pholden Paul Holden
            franktion Frank Martini
            Carlos Castillo Carlos Castillo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 35 minutes
                5h 35m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.