From 4f2fd4f3b4e6b5b0738e3a43229a150710c2efaa Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Thu, 2 Nov 2023 14:08:40 +0100 Subject: [PATCH 1/2] MIR-1250 Set q.alt parameter on /find request handler --- .../src/main/resources/config/mir/solr/main/solr-config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mir-module/src/main/resources/config/mir/solr/main/solr-config.json b/mir-module/src/main/resources/config/mir/solr/main/solr-config.json index fc6eae894e..de76733f1f 100644 --- a/mir-module/src/main/resources/config/mir/solr/main/solr-config.json +++ b/mir-module/src/main/resources/config/mir/solr/main/solr-config.json @@ -11,6 +11,7 @@ "wt": "xml", "bq": "created:[NOW/DAY-6MONTH TO NOW/DAY]", "condQuery": "*", + "q.alt": "*:*", "sort": "score desc, mods.dateIssued desc" }, "appends": { @@ -195,4 +196,4 @@ } } } -] \ No newline at end of file +] From 5bd54ec2cbe7f56ce9326733c51457025297304a Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Thu, 2 Nov 2023 14:10:31 +0100 Subject: [PATCH 2/2] MIR-1250 Removed javascript modifying empty search input element --- .../src/main/resources/META-INF/resources/js/mir/base.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mir-module/src/main/resources/META-INF/resources/js/mir/base.js b/mir-module/src/main/resources/META-INF/resources/js/mir/base.js index 5f84a6af54..ca348c7739 100644 --- a/mir-module/src/main/resources/META-INF/resources/js/mir/base.js +++ b/mir-module/src/main/resources/META-INF/resources/js/mir/base.js @@ -325,14 +325,6 @@ $('.confirm_deletion').confirm(); - // modify empty search - // add * as value for an empty search to get results - $(".searchfield_box").submit(function() { - if ( $("input.search-query").val() == "" ) { - $("input.search-query").val("*"); - } - }); - // search person index // makes sure the query ends with .* on submit $("#index_search_form").submit( function () {