You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2026/03/27 17:53:22 UTC
(solr) branch branch_9x updated: Solr Admin Ui: search with contains in solr core/collection drop downs (#4121)
This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 8e5124fcefa Solr Admin Ui: search with contains in solr core/collection drop downs (#4121)
8e5124fcefa is described below
commit 8e5124fcefa0e913071523af4c82105c0fc3e98a
Author: Renato Haeberli <re...@onnet.ch>
AuthorDate: Fri Mar 27 18:35:28 2026 +0100
Solr Admin Ui: search with contains in solr core/collection drop downs (#4121)
---
changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.yml | 7 +++++++
solr/webapp/web/index.html | 2 ++
solr/webapp/web/partials/analysis.html | 8 +++++++-
solr/webapp/web/partials/schema.html | 3 ++-
4 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.yml b/changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.yml
new file mode 100644
index 00000000000..c9f6f9f0685
--- /dev/null
+++ b/changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.yml
@@ -0,0 +1,7 @@
+title: Dropdowns for collection/core, for fields on the schema-page and for field-types on the analyze page are now using a contains-filtering
+type: changed
+authors:
+ - name: Renato Haeberli
+links:
+- name: GITHUB#4121
+ url: https://github.com/apache/solr/pull/4121
diff --git a/solr/webapp/web/index.html b/solr/webapp/web/index.html
index dbe9a840c1a..71e9a3c045f 100644
--- a/solr/webapp/web/index.html
+++ b/solr/webapp/web/index.html
@@ -202,6 +202,7 @@ limitations under the License.
<select placeholder-text-single="'Collection Selector'"
ng-model="currentCollection"
chosen
+ search-contains="true"
ng-change="showCollection(currentCollection)"
ng-options="collection.name for collection in aliases_and_collections"></select>
</div>
@@ -229,6 +230,7 @@ limitations under the License.
<select placeholder-text-single="'Core Selector'"
ng-model="currentCore"
chosen
+ search-contains="true"
ng-change="showCore(currentCore)"
ng-options="core.name for core in cores"></select>
</div>
diff --git a/solr/webapp/web/partials/analysis.html b/solr/webapp/web/partials/analysis.html
index 23527f7351c..116859eccc5 100644
--- a/solr/webapp/web/partials/analysis.html
+++ b/solr/webapp/web/partials/analysis.html
@@ -49,7 +49,13 @@ limitations under the License.
<li class="settings-holder clearfix">
<div class="settings clearfix">
<label for="type_or_name">Analyse Fieldname / FieldType:</label>
- <select style="width:130px" chosen ng-change="changeFieldOrType()" id="type_or_name" ng-model="fieldOrType" ng-options="f.value as f.label group by f.group for f in fieldsAndTypes"></select>
+ <select style="width:130px"
+ chosen ng-change="changeFieldOrType()" id="type_or_name"
+ ng-model="fieldOrType"
+ search-contains="true"
+ ng-options="f.value as f.label group by f.group for f in fieldsAndTypes">
+
+ </select>
<a id="tor_schema" ng-href="#/{{core}}/schema?{{schemaBrowserUrl}}"><span>Schema Browser</span> </a>
diff --git a/solr/webapp/web/partials/schema.html b/solr/webapp/web/partials/schema.html
index 9913dbd2f2c..0b60154a05e 100644
--- a/solr/webapp/web/partials/schema.html
+++ b/solr/webapp/web/partials/schema.html
@@ -390,6 +390,7 @@ limitations under the License.
ng-model="fieldOrType"
chosen
data-placeholder="Please select ..."
+ search-contains="true"
ng-change="selectFieldOrType()"
ng-options="f.value as f.label group by f.group for f in fieldsAndTypes"></select>
@@ -445,7 +446,7 @@ limitations under the License.
</form>
</div>
</dd>
-
+
<dt class="dynamic-field" ng-class="{active: selectedType=='Dynamic Field'}" ng-show="leftbar.dynamicFields">Dynamic Field</dt>
<dd class="dynamic-field" ng-class="{active: selectedType=='Dynamic Field'}" ng-repeat="field in leftbar.dynamicFields"><a href="#/{{core}}/schema?dynamic-field={{field}}">{{field}}</a></dd>