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

Specify a minimum Solr version for Global Search

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Global search
    • Labels:
    • Testing Instructions:
      Hide

      You will need to download solr 4 and solr 5

      1. Download a solr 4.x and start the service
      2. Setup solr pointing to the solr 4 instance, IIRC there is an autocreated collection1 index
      3. Go to admin/settings.php?section=manageglobalsearch and next to "Setup search engine" you should see a text saying that the schema needs to be created, that text will contain a link, click it
      4. You should not be able to create the index and you should see a message that states that you need solr 5 to use this script and that you should setup the schema manually
      5. Stop the solr 4 instance (stop it because now you will repeat the same for solr 5 and everything is more straight forward if you use the default port) and delete it
      6. Setup solr 5 as described in https://docs.moodle.org/dev/Global_search, you should be able to set everything without problems
      Show
      You will need to download solr 4 and solr 5 Download a solr 4.x and start the service Setup solr pointing to the solr 4 instance, IIRC there is an autocreated collection1 index Go to admin/settings.php?section=manageglobalsearch and next to "Setup search engine" you should see a text saying that the schema needs to be created, that text will contain a link, click it You should not be able to create the index and you should see a message that states that you need solr 5 to use this script and that you should setup the schema manually Stop the solr 4 instance (stop it because now you will repeat the same for solr 5 and everything is more straight forward if you use the default port) and delete it Setup solr 5 as described in https://docs.moodle.org/dev/Global_search , you should be able to set everything without problems
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53535_master

      Description

      Currently we provide no guidance for Solr versions. In my testing, I haven't been able to get Solr 4.8.0 to work, it fails on schema creation - but it is so different to setup than 5.x, I might be screwing it up.

      Regardless, we should probably set a minimum Solr version for support/guidance reasons.

      My personal opinion is that we should probably set it at 5.0 - after we confirm it works, but that is "only" a bit more than a year old. So I'm not sure if we want to put effort into getting some late 4.x versions to work.

        Attachments

          Activity

            People

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

              Dates

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