You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by va...@apache.org on 2015/06/24 06:04:57 UTC

svn commit: r1687169 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/CHANGES.txt solr/core/ solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java

Author: varun
Date: Wed Jun 24 04:04:57 2015
New Revision: 1687169

URL: http://svn.apache.org/r1687169
Log:
SOLR-7711: Correct initial capacity for the list that holds the default components for the SearchHandler

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/solr/core/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java

Modified: lucene/dev/branches/branch_5x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/CHANGES.txt?rev=1687169&r1=1687168&r2=1687169&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/solr/CHANGES.txt Wed Jun 24 04:04:57 2015
@@ -188,6 +188,9 @@ Other Changes
 * The "name" parameter in ADDREPLICA Collections API call has be deprecated. One cannot specify
   the core name for a replica. See SOLR-7499 for more info. (Varun Thacker, noble, Erick Erickson)
 
+* SOLR-7711: Correct initial capacity for the list that holds the default components for the SearchHandler
+  (Christine Poerschke via Varun Thacker)
+
 ==================  5.2.1 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java?rev=1687169&r1=1687168&r2=1687169&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java Wed Jun 24 04:04:57 2015
@@ -78,7 +78,7 @@ public class SearchHandler extends Reque
 
   protected List<String> getDefaultComponents()
   {
-    ArrayList<String> names = new ArrayList<>(6);
+    ArrayList<String> names = new ArrayList<>(8);
     names.add( QueryComponent.COMPONENT_NAME );
     names.add( FacetComponent.COMPONENT_NAME );
     names.add( FacetModule.COMPONENT_NAME );