ISLE icon indicating copy to clipboard operation
ISLE copied to clipboard

Quick Fix for Schema Browser in Solr

Open McFateM opened this issue 6 years ago • 1 comments

I've noticed that the schema browser function in ISLE's Solr is missing a key "fix" that Peter MacDonald helped me with a couple years ago. When I open the schema browser, for instance http://isle.localdomain:8082/solr/#/collection1/schema-browser, and click into the field pull-down at the top of the window, I can only see a small portion of each pull-down option, and the most significant portion of each option is missing with no ability to "scroll right" and see the whole thing.

The following CSS fix takes care of that, and I think it should be baked in to our Solr image...

Find the "chosen.css" file inside Solr. Mine used to live at: /opt/fedora/tomcat/webapps/solr/css/chosen.css

Add a width property right after "left: 0;" as follows

.chzn-container .chzn-drop ( ... left: 0; width: 1000px !important; ... }

That's it. Apply this and when you open the schema browser you can actually see everything that's needed.

McFateM avatar Dec 20 '18 18:12 McFateM

In the case of ISLE, I found the target file in ./usr/local/tomcat/webapps/solr/css/chosen.css inside the Solr container.

McFateM avatar Dec 20 '18 18:12 McFateM