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

Don't optimize solr after every indexing run

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Global search
    • Labels:
    • Testing Instructions:
      Hide
      1. Follow https://docs.moodle.org/dev/Global_search to install global search and solr
      2. Go to site admin -> plugins -> search -> manage seach and set everything, including data indexing
      3. Run

        php admin/tool/task/cli/schedule_task.php --execute="\\core\\task\\search_index_task"

        and make sure there are no errors.

      4. Search for something, it should return results according to your site's contents
      5. Run

        php admin/tool/task/cli/schedule_task.php --execute="\\core\\task\\search_optimize_task"

        and make sure there are no errors.

      Show
      Follow https://docs.moodle.org/dev/Global_search to install global search and solr Go to site admin -> plugins -> search -> manage seach and set everything, including data indexing Run php admin/tool/task/cli/schedule_task.php --execute="\\core\\task\\search_index_task" and make sure there are no errors. Search for something, it should return results according to your site's contents Run php admin/tool/task/cli/schedule_task.php --execute="\\core\\task\\search_optimize_task" and make sure there are no errors.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53325-master

      Description

      After some research related to MDL-53281, I've found it's generally not preferred to optimize the solr database after every indexing run. Generally you only want to do it a at most a few times a day. It's quite intensive on the solr server, and ~doubles the index size while it is happening.

      Optimize should likely be moved into it's own task, separate solr task from the index task.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16