Skip to content

Apache Lucene open-source search software

SOLR-12253: Remove optimize button from the core admin page

Erick Erickson84583d256352
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index ff8283841e4..ff0ea2cdca0 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -182,6 +182,9 @@ Bug Fixes
* SOLR-12250: NegativeArraySizeException on TransactionLog if previous document more than 1.9GB (Cao Manh Dat)
+
+* SOLR-12253: Remove optimize button from the core admin page (Erick Erickson)
+
Optimizations
----------------------
diff --git a/solr/webapp/web/css/angular/collections.css b/solr/webapp/web/css/angular/collections.css
index 43360c05cfe..e8d1207e161 100644
--- a/solr/webapp/web/css/angular/collections.css
+++ b/solr/webapp/web/css/angular/collections.css
@@ -170,10 +170,6 @@ limitations under the License.
background-image: url( ../../img/ico/cross-button.png );
}
-#content #collections .actions #optimize span
-{
- background-image: url( ../../img/ico/hammer-screwdriver.png );
-}
#content #collections .actions div.action
{
diff --git a/solr/webapp/web/css/angular/cores.css b/solr/webapp/web/css/angular/cores.css
index 0d10d603f58..0428c664b36 100644
--- a/solr/webapp/web/css/angular/cores.css
+++ b/solr/webapp/web/css/angular/cores.css
@@ -164,14 +164,6 @@ limitations under the License.
background-image: url( ../../img/ico/arrow-switch.png );
}
-#content #cores .actions #optimize
-{
-}
-
-#content #cores .actions #optimize span
-{
- background-image: url( ../../img/ico/hammer-screwdriver.png );
-}
#content #cores .actions div.action
{
diff --git a/solr/webapp/web/partials/cores.html b/solr/webapp/web/partials/cores.html
index e426e4cb75a..1615769564f 100644
--- a/solr/webapp/web/partials/cores.html
+++ b/solr/webapp/web/partials/cores.html
@@ -29,8 +29,6 @@ limitations under the License.
<button id="swap" class="action requires-core" ng-click="showSwapCores()"><span>Swap</span></button>
<button id="reload" class="requires-core" ng-click="reloadCore()"
ng-class="{success: reloadSuccess, warn: reloadFailure}"><span>Reload</span></button>
- <button id="optimize" class="requires-core" ng-click="optimizeCore()" ng-show="core.index.hasDeletions || optimizeSuccess"
- ng-class="{success: optimizeSuccess, warn: optimizeFailure}"><span>Optimize</span></button>
</span>
<div class="action add" data-rel="add" ng-show="showAdd" style="display:block;left:0px;">