elixir-luxembourg / daisy

Data Information System (DAISY) is a data bookkeeping application designed to help Biomedical Research institutions with their GDPR compliance.
GNU Affero General Public License v3.0
12 stars 10 forks source link

Replace default django-haystack solr schema templates by more recent versions #373

Open neoflex opened 1 year ago

neoflex commented 1 year ago

Is your feature request related to a problem? Please describe.

The installation/deployment process is more complicated than necessary. The user needs to downloads two deprecated solr configuration files currency.xml and elevate.xml while those files are not used by more recent versions of solr (at least not in the default schemas).

Describe the solution requested

Take recent versions of schema.xml and solrconfig.xml and create haystack templates based on them. See https://django-haystack.readthedocs.io/en/master/management_commands.html?highlight=build_solr_schema#build-solr-schema

build_solr_schema uses templates to generate the output files. Haystack provides default templates for schema.xml and solrconfig.xml that are solr 6.5 compatible using some sensible defaults. If you would like to provide your own template, you will need to place it in search_configuration/ inside a directory specified by your app's template directories settings.