Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-6679: uncomment /suggest, but tie it to an sysprop so you have to go out of your way to enable on startup

Chris M. Hostettere002da2d6a69
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b22c45ea37f..a0c2cdfc82a 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -298,9 +298,9 @@ Bug Fixes
* SOLR-6721: ZkController.ensureReplicaInLeaderInitiatedRecovery puts replica
in local map before writing to ZK. (shalin)
-* SOLR-6679: Remove suggester component from stock solrconfig.xml since
+* SOLR-6679: Disabled suggester component from techproduct solrconfig.xml since
it caused long startup times on lage indexes even when it wasn't used.
- (yonik)
+ (yonik, hossman)
* SOLR-6738: Admin UI - Escape Data on Plugins-View (steffkes)
diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml
index 76933e24a7b..e08d4f9351e 100755
--- a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml
+++ b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml
@@ -1359,8 +1359,13 @@
</arr>
</requestHandler>
- <!-- This causes long startup times on big indexes, even when never used. See SOLR-6679
- <searchComponent name="suggest" class="solr.SuggestComponent">
+ <!-- This is disabled by default because it currently causes long startup times on
+ big indexes, even when never used. See SOLR-6679 for background.
+
+ To use this suggester, set the "solr.suggester.enabled=true" system property
+ -->
+ <searchComponent name="suggest" class="solr.SuggestComponent"
+ enable="${solr.suggester.enabled:false}" >
<lst name="suggester">
<str name="name">mySuggester</str>
<str name="lookupImpl">FuzzyLookupFactory</str>
@@ -1371,7 +1376,8 @@
</lst>
</searchComponent>
- <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
+ <requestHandler name="/suggest" class="solr.SearchHandler"
+ startup="lazy" enable="${solr.suggester.enabled:false}" >
<lst name="defaults">
<str name="suggest">true</str>
<str name="suggest.count">10</str>