Solr Admin Ui: search with contains in solr core/collection drop down#4121
Solr Admin Ui: search with contains in solr core/collection drop down#4121renatoh wants to merge 6 commits intoapache:mainfrom
Conversation
|
Looks like you added and then removed changes? |
|
hi @epugh:) |
I'm open to it! Major improvements I'd rather see go in the new UI, but refining existing UX is always a good thing. |
from what I have seen the new UI is not exactly around the corner;) |
Already noted. 💪 |
|
@epugh Do you think we can merge these small changes? |
There was a problem hiding this comment.
Pull request overview
This PR enhances the search functionality in Solr Admin UI dropdowns by enabling substring matching instead of prefix-only matching. This allows users to find collections, cores, fields, and field types by typing any part of the name, which is particularly valuable when working with many items.
Changes:
- Added
search-contains="true"attribute to collection and core selector dropdowns in the main index page - Added
search-contains="true"attribute to field/type selector dropdowns in schema and analysis pages - Fixed trailing whitespace in schema.html
- Added changelog entry documenting the improvement
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| solr/webapp/web/index.html | Added search-contains to collection and core selector dropdowns for improved searchability |
| solr/webapp/web/partials/schema.html | Added search-contains to field/type selector dropdown and removed trailing whitespace |
| solr/webapp/web/partials/analysis.html | Added search-contains to field/type selector dropdown with improved formatting |
| changelog/unreleased/GITHUB#4121-improve-search-in-dropdown.yml | Added changelog entry documenting the enhancement |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@renatoh so, if this is working for you, maybe it's just me.... I can't get it to work! Here is a video I recorded... Any advice? Can you link to the docs for the select handler? Quality.of.Life.Debugging.in.Search.Contains.mp4I suppose, if it works for you, then I can merge ;-). |
|
Hi @epugh Thanks for testing it and for the video. I've retested it, works fine for me as you can see on these screenshots below. I've tested in in FF and Chrome. Have you cleared the browser cache or tried in in a private browser tab?
I belief this is what we use: |


This is a small quality of life improvement. With this small change collection/cores in the drop down are searched with a contains, now the collection name 'catalog1-products' is found by typing 'product' into the search box above the drop down. This is especially useful if you have many collections.