Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
INSTALL.md file contains misleading and outdated instructions which leads to bad practices treated as a good one.
Examples:
- creating Solr core manually - Solr have script to create a core bundled with it since ages, at least since version 5.0
- configuring solr.install.dir in solrcore.properties - solr.install.dir is a system property that was introduced in v4.10.3 https://lucene.apache.org/solr/8_0_0/changes/Changes.html#v4.10.3.other_.... This is set by Solr start up script (bin/solr) and should not be overridden from solrcore.properties
Proposed resolution
Remove installation instructions from INSTALL.md and replace them with links to the Solr documentation portal:
- https://lucene.apache.org/solr/guide/8_2/installing-solr.html
- https://lucene.apache.org/solr/guide/8_2/taking-solr-to-production.html
- https://lucene.apache.org/solr/guide/ - for a list of other version specific guides
Update instructions on how to create a Solr core.
Remove solr.install.dir from solrcore.properties in the generated files and in the module UI.
Remaining tasks
- Agree on proposed resolution
- Create a patch
- Review
- Commit
- Update documentation on Drupal.org where applicable
User interface changes
Removal of solr.install.dir input in configuration form.
API changes
None.
Data model changes
None.
Release notes snippet
TDB
Comment | File | Size | Author |
---|---|---|---|
#7 | 3100457.patch | 14.53 KB | mkalkbrenner |
#2 | search_api_solr-3100457-2.patch | 18.81 KB | RoSk0 |
Comments
Comment #2
RoSk0Initial patch.
Comment #3
mkalkbrennerFirst of all you should fiele a PR on github to get your patch tested.
And I'm not entirely happy with that patch. But let's discuss that after having the test results of travis.
Comment #4
RoSk0PR tested successfully.
https://github.com/mkalkbrenner/search_api_solr/pull/52
Comment #5
RoSk0Can we discuss this now?
Comment #6
mkalkbrennerI don't agree with this change! Even the latest Solr examples set the path like this. See
https://github.com/apache/lucene-solr/blob/branch_8_4/solr/example/examp...
But in genaral I agree that setting solr.install.dir in solrcore.properties should be avoided nowadays. But dropping it entirely isn't the correct solution. Otherwise we'll loose features like the support for different Solr servers on the same machine.
I propose to remove the solr.install.dir property from solrcore.properties if it is set to an empty string in the config.
Comment #7
mkalkbrennerAn interdiff isn't that readable. Therefore I just upload a new patch.
Comment #9
mkalkbrenner