From abd28710719067c81762b9f9ce524a43022135ce Mon Sep 17 00:00:00 2001 From: Oliver Bertuch Date: Tue, 21 Dec 2021 18:34:37 +0100 Subject: [PATCH] feat(solr): add XSLT scripts to edit solrconfig.xml with our changes Dataverse specific changes #7662 --- conf/solr/config/disable-schemaless.xslt | 27 ++++++++ conf/solr/config/search-boosting.xslt | 72 +++++++++++++++++++++ conf/solr/config/static-schema-factory.xslt | 21 ++++++ 3 files changed, 120 insertions(+) create mode 100644 conf/solr/config/disable-schemaless.xslt create mode 100644 conf/solr/config/search-boosting.xslt create mode 100644 conf/solr/config/static-schema-factory.xslt diff --git a/conf/solr/config/disable-schemaless.xslt b/conf/solr/config/disable-schemaless.xslt new file mode 100644 index 00000000000..d2b5e32904a --- /dev/null +++ b/conf/solr/config/disable-schemaless.xslt @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/conf/solr/config/search-boosting.xslt b/conf/solr/config/search-boosting.xslt new file mode 100644 index 00000000000..915c98ce600 --- /dev/null +++ b/conf/solr/config/search-boosting.xslt @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + edismax + 0.075 + + dvName^400 + authorName^180 + dvSubject^190 + dvDescription^180 + dvAffiliation^170 + title^130 + subject^120 + keyword^110 + topicClassValue^100 + dsDescriptionValue^90 + authorAffiliation^80 + publicationCitation^60 + producerName^50 + fileName^30 + fileDescription^30 + variableLabel^20 + variableName^10 + _text_^1.0 + + + dvName^200 + authorName^100 + dvSubject^100 + dvDescription^100 + dvAffiliation^100 + title^75 + subject^75 + keyword^75 + topicClassValue^75 + dsDescriptionValue^75 + authorAffiliation^75 + publicationCitation^75 + producerName^75 + + + + isHarvested:false^25000 + + + + \ No newline at end of file diff --git a/conf/solr/config/static-schema-factory.xslt b/conf/solr/config/static-schema-factory.xslt new file mode 100644 index 00000000000..1ed44f2e403 --- /dev/null +++ b/conf/solr/config/static-schema-factory.xslt @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file