Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9575

Allow starting with an empty SOLR_HOME

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None

    Description

      The user may not want to use Solr's default solr-home dir location – most likely to use a separate disk. If you do this, there are two main problems:

      • solr.xml & zoo.cfg aren't there
      • configsets aren't there

      Of course you could copy it manually but that's an extra step, and it's particularly annoying to add this step to a Docker setup. Docker is all the rage these days, and for good reason. If I mount a volume at /opt/solr/server/solr then it basically masks this part of the built-in Solr image (thus making configsets completely invisible) and points to some place that will be empty. Solr obviously complains. I could set the solr-home to some other path that I mount, but Solr would still complain about an empty solr-home – no solr.xml

      If solr-home is empty, and if it's a dir other than the default solr-home, then I think the solr-home should be initialized with solr.xml and zoo.cfg copied from the default solr-home. I think configsets should be referenced from the default solr-home if there is no configsets dir in solr-home.

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              dsmiley David Smiley
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h