From 42c8c6328066f05992a5f5b18cc248daf0430ffa Mon Sep 17 00:00:00 2001 From: Possommi Date: Wed, 15 Nov 2023 21:47:28 +0100 Subject: [PATCH] MIR-1250 Set q.alt parameter on /find request handler (#914) * MIR-1250 Set q.alt parameter on /find request handler * MIR-1250 Removed javascript modifying empty search input element --- .../src/main/resources/META-INF/resources/js/mir/base.js | 8 -------- .../main/resources/config/mir/solr/main/solr-config.json | 3 ++- 2 files changed, 2 insertions(+), 9 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 () { 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 +]