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

Global Search: Add highest ranked results section

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-60917-Master
    • Hide
      1. Go to Site Admin > Plugins > Search > Display results in separate categories, enable the setting
      2. Go to Site Admin > Plugins > Search > Manage global search, set "Maximum top results" to 3
      3.  Go to Site Admin > Plugins > Search > Manage global search, set "Teacher"  and "Non-editing teacher" as "teacher roles"
      4. Generate test courses: https://docs.moodle.org/39/en/Test_site_generator
      5. Change a course name to "Course search 01"
      6. Change another course name to "Course search 02"
      7. Go to Site Admin > Plugins > Search > Search area, update index
      8. Try global search for "Course search":
        1. There should be 2 top results for "Course search 01" and "Course search 02"
        2. Note that "Course search 01" is above the  "Course search 02"
      9. Enrol yourself as a student in "Course Search 02"
      10. Try global search for "Course search" again:
        1. There should be 2 top results for "Course search 02" and "Course search 01"
        2. Note that "Course search 02" is above the  "Course search 01"
      11. Try global search for "Course search 02":
        1. There should be 1 top results for "Course search 02"
      12. Enrol a teacher/non-editing teacher in "Course search 02"
      13. Go to Site Admin > Plugins > Search > Search area, update index
      14. Try global search for "Course search 02":
        1. There should be 2 top results for "Course search 02" and the teacher
      15. Rename an activity in "Course search 01" with the text "Course search 02"
      16. Go to Site Admin > Plugins > Search > Search area, update index
      17. Try global search for "Course search 02":
        1. There should be 3 top results for "Course search 02" and the teacher and the activity in "Course search 01"
      18. Go to Site Admin > Plugins > Search > Manage global search, set "Maximum top results" to 0
      19. Try global search for "Course search" again:
        1. Verify that the "Top Results" section isn't shown at all. Still the results will show in the normal sections (courses, activities, users...)
      Show
      Go to Site Admin > Plugins > Search > Display results in separate categories, enable the setting Go to Site Admin > Plugins > Search > Manage global search, set "Maximum top results" to 3  Go to Site Admin > Plugins > Search > Manage global search, set "Teacher"  and "Non-editing teacher" as "teacher roles" Generate test courses: https://docs.moodle.org/39/en/Test_site_generator Change a course name to "Course search 01" Change another course name to "Course search 02" Go to Site Admin > Plugins > Search > Search area, update index Try global search for "Course search": There should be 2 top results for "Course search 01" and "Course search 02" Note that "Course search 01" is above the  "Course search 02" Enrol yourself as a student in "Course Search 02" Try global search for "Course search" again: There should be 2 top results for "Course search 02" and "Course search 01" Note that "Course search 02" is above the  "Course search 01" Try global search for "Course search 02": There should be 1 top results for "Course search 02" Enrol a teacher/non-editing teacher in "Course search 02" Go to Site Admin > Plugins > Search > Search area, update index Try global search for "Course search 02": There should be 2 top results for "Course search 02" and the teacher Rename an activity in "Course search 01" with the text "Course search 02" Go to Site Admin > Plugins > Search > Search area, update index Try global search for "Course search 02": There should be 3 top results for "Course search 02" and the teacher and the activity in "Course search 01" Go to Site Admin > Plugins > Search > Manage global search, set "Maximum top results" to 0 Try global search for "Course search" again: Verify that the "Top Results" section isn't shown at all. Still the results will show in the normal sections (courses, activities, users...)

      Add the 1-3 highest ranked results from all tabs to the top of the page, above the tab headers (MDL-60913).

      For example: If I search for "software engineering", I would expect to see these results in this highest ranked results section:

      • Courses with have the exact string "software engineering" in their name, especially if I am enrolled into the course and if the course is not from the past / completed.
      • Users who teach "Software engineering" courses or work in the "Institute of Software engineering"
      • Course content which definitely have a high ranking for "Software engineering" and can be considered something like "most likely that you searched for this content".

      Please see attached mockup

        1. course-ranked.png
          course-ranked.png
          99 kB
        2. MDL-60917_Step 10.png
          MDL-60917_Step 10.png
          136 kB
        3. MDL-60917_Step 11.png
          MDL-60917_Step 11.png
          132 kB
        4. MDL-60917_Step 14.png
          MDL-60917_Step 14.png
          138 kB
        5. MDL-60917_Step 17.png
          MDL-60917_Step 17.png
          131 kB
        6. MDL-60917_Step 19.png
          MDL-60917_Step 19.png
          122 kB
        7. MDL-60917_Step 8.png
          MDL-60917_Step 8.png
          155 kB

            Nguyen Nathan Nguyen
            mattp@catalyst-au.net Matt Porritt
            Dmitrii Metelkin Dmitrii Metelkin
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 36 minutes
                1h 36m

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