Skip to content

Comments

Solr Admin Ui: search with contains in solr core/collection drop down#4121

Open
renatoh wants to merge 6 commits intoapache:mainfrom
renatoh:improve-search-in-dropdown
Open

Solr Admin Ui: search with contains in solr core/collection drop down#4121
renatoh wants to merge 6 commits intoapache:mainfrom
renatoh:improve-search-in-dropdown

Conversation

@renatoh
Copy link
Contributor

@renatoh renatoh commented Feb 9, 2026

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.

@epugh epugh changed the title Solr Adming Ui: search with contains in solr core/collection drop down Solr Admin Ui: search with contains in solr core/collection drop down Feb 10, 2026
@epugh
Copy link
Contributor

epugh commented Feb 10, 2026

Looks like you added and then removed changes?

@renatoh
Copy link
Contributor Author

renatoh commented Feb 10, 2026

hi @epugh:)
I undid the changes and then accidentally committed it.
I am wondering if we could also change the behavior for the drop down on the analyzer and the schema page. Imo, it is a pain not to to filter with a contains, so you always need to remember the exact name of the field/field-type in order to filter it for it.

@epugh
Copy link
Contributor

epugh commented Feb 10, 2026

hi @epugh:) I undid the changes and then accidentally committed it. I am wondering if we could also change the behavior for the drop down on the analyzer and the schema page. Imo, it is a pain not to to filter with a contains, so you always need to remember the exact name of the field/field-type in order to filter it for it.

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.

@renatoh
Copy link
Contributor Author

renatoh commented Feb 11, 2026

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;)
I have change it for the other drop downs which can be filtered as well, so the behavior is consistent.

@malliaridis
Copy link
Contributor

Major improvements I'd rather see go in the new UI

Already noted. 💪

@renatoh
Copy link
Contributor Author

renatoh commented Feb 23, 2026

@epugh Do you think we can merge these small changes?

@malliaridis malliaridis self-requested a review February 23, 2026 13:08
@epugh epugh requested review from Copilot and removed request for malliaridis February 23, 2026 23:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants