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

Don't optimize solr after every indexing run

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.1
    • Global search
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-53325-master
    • 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.

    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

              emerrill Eric Merrill
              emerrill Eric Merrill
              David Monllaó David Monllaó
              Andrew Lyons Andrew Lyons
              Jun Pataleta Jun Pataleta
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                23/May/16