Skip to content

Apache Lucene open-source search software

SOLR-7711: Correct initial capacity for the list that holds the default components for the SearchHandler

Varun Thacker77443b8b9268
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 18aec6b347d..92cee0de0a6 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -246,6 +246,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
diff --git a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
index 6217745a590..6ff26ad84f4 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java
@@ -78,7 +78,7 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware ,
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 );