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

Rewrite \core_search\top_result_test so that it does not rely solely on the ordering of the search results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1
    • Global search, Unit tests
    • None
    • MOODLE_401_STABLE

      With indexes added in the search_simpledb_index table in MDL-70870, the ordering of search results are not quite predictable anymore as the sort order now depends on the index order and can cause the \core_search\top_result_test unit test to fail (especially in Oracle).

      As such, we had to apply ordering in \search_simpledb\engine::execute_query(). I think though that we shouldn't have to do this and perhaps better to look into rewriting top_result_test (or parts of it) in a way to test search results ranking without relying on the ordering of the results.

            Unassigned Unassigned
            jpataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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