Apache Solr open-source search software
Solr Admin Ui: search with contains in solr core/collection drop downs (#4121)
Renato Haeberliedd9aaecc142
diff --git a/changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.yml b/changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.ymlnew file mode 100644index 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/4121diff --git a/solr/webapp/web/index.html b/solr/webapp/web/index.htmlindex 4689d5bb485..46535d6b742 100644--- a/solr/webapp/web/index.html+++ b/solr/webapp/web/index.html@@ -206,6 +206,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>@@ -233,6 +234,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.htmlindex 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.htmlindex 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"chosendata-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>