Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-11296: Spellcheck parameters not working in new UI

Jan Høydahl62edbf2e7da7
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 28baf4d437e..b4bdf373536 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -175,6 +175,8 @@ Bug Fixes
* SOLR-13066: A failure while reloading a SolrCore can result in the SolrCore not being closed. (Mark Miller)
+* SOLR-11296: Spellcheck parameters not working in new UI (Matt Pearce via janhoy)
+
Improvements
----------------------
diff --git a/solr/webapp/web/js/angular/controllers/query.js b/solr/webapp/web/js/angular/controllers/query.js
index 63f0830526a..7267b000966 100644
--- a/solr/webapp/web/js/angular/controllers/query.js
+++ b/solr/webapp/web/js/angular/controllers/query.js
@@ -43,7 +43,8 @@ solrAdminApp.controller('QueryController',
var copy = function(params, query) {
for (var key in query) {
terms = query[key];
- if (terms.length > 0 && key[0]!="$") {
+ // Booleans have no length property - only set them if true
+ if (((typeof(terms) == typeof(true) && terms) || terms.length > 0) && key[0]!="$") {
set(key, terms);
}
}