From 1398a0262d57675f8d43029e8c018b2d1d3b7264 Mon Sep 17 00:00:00 2001 From: Stefan Matheis Date: Mon, 28 Jan 2013 17:38:47 +0000 Subject: [PATCH] SOLR-4306: Utilize indexInfo=false when gathering core names in UI git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1439516 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ solr/webapp/web/js/scripts/app.js | 2 +- solr/webapp/web/js/scripts/cores.js | 8 +------- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 9ea9b2fd4da..d1d8d2f5186 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -107,6 +107,9 @@ Optimizations * SOLR-3915: Color Legend for Cloud UI (steffkes) +* SOLR-4306: Utilize indexInfo=false when gathering core names in UI + (steffkes) + Other Changes ---------------------- diff --git a/solr/webapp/web/js/scripts/app.js b/solr/webapp/web/js/scripts/app.js index 78842778780..adbabadb366 100644 --- a/solr/webapp/web/js/scripts/app.js +++ b/solr/webapp/web/js/scripts/app.js @@ -277,7 +277,7 @@ var solr_admin = function( app_config ) $.ajax ( { - url : config.solr_path + config.core_admin_path + '?wt=json', + url : config.solr_path + config.core_admin_path + '?wt=json&indexInfo=false', dataType : 'json', beforeSend : function( arr, form, options ) { diff --git a/solr/webapp/web/js/scripts/cores.js b/solr/webapp/web/js/scripts/cores.js index 623f09e576f..0ee5cc88e3e 100644 --- a/solr/webapp/web/js/scripts/cores.js +++ b/solr/webapp/web/js/scripts/cores.js @@ -20,12 +20,6 @@ sammy.bind 'cores_load_data', function( event, params ) { - if( app.cores_data ) - { - params.callback( app.cores_data ); - return true; - } - $.ajax ( { @@ -335,7 +329,7 @@ sammy.get .ajaxForm ( { - url : app.config.solr_path + app.config.core_admin_path + '?wt=json', + url : app.config.solr_path + app.config.core_admin_path + '?wt=json&indexInfo=false', dataType : 'json', beforeSubmit : function( array, form, options ) {