From 26c1dfcfadd8afee50004f037eb9955b90206719 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Sat, 30 Jul 2016 18:18:52 -0700 Subject: [PATCH 1/2] Explicitly require bundler dependency in the application template (#1528) --- template.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template.rb b/template.rb index 4f0ea41da..e09ff08e2 100644 --- a/template.rb +++ b/template.rb @@ -1,3 +1,5 @@ +require 'bundler' + DEFAULT_BLACKLIGHT_OPTIONS = '--devise'.freeze DEFAULT_SPOTLIGHT_OPTIONS = '-f --openseadragon --mailer_default_url_host=localhost:3000'.freeze blacklight_options = ENV.fetch('BLACKLIGHT_INSTALL_OPTIONS', DEFAULT_BLACKLIGHT_OPTIONS) From 01c210de8e00e9742fecda2cbf280a9660f260b2 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Sat, 30 Jul 2016 18:40:26 -0700 Subject: [PATCH 2/2] Update distributed solr configuration with latest upstream changes (#1529) --- lib/generators/spotlight/install_generator.rb | 2 +- .../spotlight/templates/.solr_wrapper.yml | 2 +- .../templates/solr/config/schema.xml | 347 ++++++++++++++++++ .../templates/solr/config/solrconfig.xml | 163 ++++++++ .../templates/solr_conf/conf/schema.xml | 159 -------- .../templates/solr_conf/conf/solrconfig.xml | 87 ----- 6 files changed, 512 insertions(+), 248 deletions(-) create mode 100644 lib/generators/spotlight/templates/solr/config/schema.xml create mode 100644 lib/generators/spotlight/templates/solr/config/solrconfig.xml delete mode 100644 lib/generators/spotlight/templates/solr_conf/conf/schema.xml delete mode 100644 lib/generators/spotlight/templates/solr_conf/conf/solrconfig.xml diff --git a/lib/generators/spotlight/install_generator.rb b/lib/generators/spotlight/install_generator.rb index 08dd3a0fb..82a05a393 100644 --- a/lib/generators/spotlight/install_generator.rb +++ b/lib/generators/spotlight/install_generator.rb @@ -125,7 +125,7 @@ def generate_social_share_button_initializer def add_solr_config_resources copy_file '.solr_wrapper.yml', '.solr_wrapper.yml' - directory 'solr_conf' + directory 'solr' end def generate_devise_invitable diff --git a/lib/generators/spotlight/templates/.solr_wrapper.yml b/lib/generators/spotlight/templates/.solr_wrapper.yml index abdbeb553..7fcc539c0 100644 --- a/lib/generators/spotlight/templates/.solr_wrapper.yml +++ b/lib/generators/spotlight/templates/.solr_wrapper.yml @@ -1,5 +1,5 @@ # Place any default configuration for solr_wrapper here # port: 8983 collection: - dir: solr_conf/conf/ + dir: solr/config/ name: blacklight-core diff --git a/lib/generators/spotlight/templates/solr/config/schema.xml b/lib/generators/spotlight/templates/solr/config/schema.xml new file mode 100644 index 000000000..54cb7b24e --- /dev/null +++ b/lib/generators/spotlight/templates/solr/config/schema.xml @@ -0,0 +1,347 @@ + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/generators/spotlight/templates/solr/config/solrconfig.xml b/lib/generators/spotlight/templates/solr/config/solrconfig.xml new file mode 100644 index 000000000..f8ab0bf45 --- /dev/null +++ b/lib/generators/spotlight/templates/solr/config/solrconfig.xml @@ -0,0 +1,163 @@ + + + + + ${solr.abortOnConfigurationError:true} + + 6.1.0 + + + + + + ${solr.core0.data.dir:} + + + + + + + + ${solr.data.dir:} + + + + + edismax + explicit + *:* + 2<-1 5<-2 6<90% + 1 + 2 + 0.01 + + + id + full_title_tesim + short_title_tesim + alternative_title_tesim + active_fedora_model_ssi + title_tesim + author_tesim + subject_tesim + all_text_timv + + + all_text_timv^10 + + + + author_tesim + + + + + title_tesim + full_title_tesim + short_title_tesim + alternative_title_tesim + + + + + subject_tesim + + + + + + *, + score + + + true + 1 + 10 + active_fedora_model_ssi + subject_ssim + + true + default + true + true + false + 5 + + + + spellcheck + + + + + + off + all + 1 + {!raw f=id v=$id} + + id, + access_ssim, + discover_access_group_ssim,discover_access_person_ssim, + read_access_group_ssim,read_access_person_ssim, + edit_access_group_ssim,edit_access_person_ssim, + depositor_ti, + embargo_release_date_dtsi + inheritable_access_ssim, + inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim, + inheritable_read_access_group_ssim,inheritable_read_access_person_ssim, + inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim, + inheritable_embargo_release_date_dtsi + + + + + + + explicit + lucene + + + + + + + all + * + 1 + {!raw f=id v=$id} + + + + + + textSpell + + + default + spell + ./spell + true + + + + + + + + + + + diff --git a/lib/generators/spotlight/templates/solr_conf/conf/schema.xml b/lib/generators/spotlight/templates/solr_conf/conf/schema.xml deleted file mode 100644 index 3d15d9214..000000000 --- a/lib/generators/spotlight/templates/solr_conf/conf/schema.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - id - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lib/generators/spotlight/templates/solr_conf/conf/solrconfig.xml b/lib/generators/spotlight/templates/solr_conf/conf/solrconfig.xml deleted file mode 100644 index 5e74ef699..000000000 --- a/lib/generators/spotlight/templates/solr_conf/conf/solrconfig.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - ${solr.abortOnConfigurationError:true} - - 4.10.3 - - - - - - ${solr.core0.data.dir:} - - - - - - - - ${solr.data.dir:} - - - - edismax - explicit - *:* - 2<-1 5<-2 6<90% - 1 - 2 - 0.01 - - id^1000 - full_title_tesim^100 - spotlight_upload_description_tesim^50 - all_text_timv - - - full_title_tesim^100 - all_text_timv^10 - - - - *, score - - - true - 1 - 10 - - - - - - true - json - true - - - - - - - - - - - - - - - - solrpingquery - - - all - - - - - - search - - -