Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16122 Moodle 4.0 QA
  3. MDLQA-16499

CLONE - Global search with solr

XMLWordPrintable

      NOTE: You need to have

      1. Access to install solr server
      2. Admin access to Moodle test site.

      Set-up

      1. Follow the instructions in the section 'Installation' in the documentation Global search
      2. Log in as admin
      3. Go to Site administration > Plugins > Search > Manage global search
      4. Enable search should be disabled by default
      5. Open a new tab and go to your dashboard, press 'Customise this page' and add a global search block
      6. You should be able to add the block and you should see the following message inside it 'Global searching is not enabled.'
      7. Leave this tab open, return to Manage global search and "Enable global search"
      8. Return to your dashboard and verify that you now see a search form.
      9. Type something and press search
      10. Verify that you are redirected to search/index.php and you see 'No results'
      11. Verify that you also see filter by area and time.
      12. Close this tab and return to the previous one
      13. Go to Site administration > Plugins > Search > Solr and save changes (basically set host to localhost, port to the default 8983 and indexname to what you have in solr core)

      Indexing & searching

      1. Go to Site administration > Development > Make test course to generate a few courses with forums if your site doesn't have much data (we will need forum posts).
      2. Go to Site administration > Plugins > Search > Manage global search.
      3. Click on Index data.
      4. Click on the button "Reindex all the site contents". I hope you don't have many many forum posts, as this will send them to the search engine, and may take a bit of time if you have thousands and thousands of posts. Take a break, you deserve it
      5. At some point this will finish and will show an 'All site contents have been reindexed. ' and the screen last run numbers will be updated
      6. Open your dashboard in a new tab and use the global search block to search for something you know that is included in a forum post
      7. Verify that you see the list of results including the search string
      8. Click all links in one of these results, and verify that they are valid results
      9. When you have more than 10 results you will see pagination links. Verify that these pagination links work
      10. Search for something else with a crazy query string like dfsghuasdguhisdfgui and verify that no results are returned
      11. Look at the query field help and try some search combinations

      Gradual reindexing

      1. Go to the Site administration > Plugins > Search > Search areas page and for the forum posts search area click the 'Gradual reindex' button on that row.
      2. On the confirm page, click the Continue button.
      3. Verify that you see a message like 'Reindexing has been requested for Forum - posts (N contexts). This indexing will be carried out by the "Global search indexing" scheduled task.', where N is the number of contexts added to the indexing queue.
      4. Click the Continue button, then on the search areas page at the bottom, verify that you see an 'Additional indexing queue' heading and table.
      5. Verify that the heading shows the number of contexts you just set up for reindexing. The table should list up to 10 forums, with links. If there are more than 10, there will be an additional last row which only contains '...'.
      6. Go to a course page and find an existing activity that is searchable and won't take long to duplicate (e.g. a Page).
      7. Duplicate the activity.
      8. Go to Site administration > Server > Tasks > Scheduled tasks and run "Global search indexing " again.
      9. Go to the Site administration > Plugins > Search > Search areas.
      10. Depending on the number of forums, the time limit for indexing, etc., verify that the indexing queue has disappeared (as the queue is empty), or has fewer items on it, and/or shows some progress (indicated as a search area and date) against the first item.

        1. gradual_index_10.png
          gradual_index_10.png
          844 kB
        2. gradual_index_3.png
          gradual_index_3.png
          1006 kB
        3. gradual_index_4.png
          gradual_index_4.png
          867 kB
        4. gradual_index_8.png
          gradual_index_8.png
          223 kB
        5. index_searching_10.png
          index_searching_10.png
          807 kB
        6. index_searching_11.png
          index_searching_11.png
          701 kB
        7. index_searching_4.png
          index_searching_4.png
          109 kB
        8. index_searching_7.png
          index_searching_7.png
          713 kB
        9. index_searching_9.png
          index_searching_9.png
          719 kB
        10. setup_11.png
          setup_11.png
          651 kB

            huongn@moodle.com Huong Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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