Apache Lucene open-source search software
SOLR-4708: Enable ClusteringComponent by default in collection1 example. The solr.clustering.enabled system property is set to 'true' by default.
Dawid Weiss0fd1bed95b8c
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 4fccdf2703a..0951352a0fb 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -115,6 +115,10 @@ OptimizationsOther Changes----------------------+* SOLR-4708: Enable ClusteringComponent by default in collection1 example.+ The solr.clustering.enabled system property is set to 'true' by default.+ (ehatcher, Dawid Weiss)+* SOLR-4914: Factor out core list persistence and discovery into anew CoresLocator interface. (Alan Woodward)diff --git a/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/solrconfig.xml b/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/solrconfig.xmlindex 9a7143f2bd9..0174555ceed 100644--- a/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/solrconfig.xml+++ b/solr/contrib/uima/src/test-files/uima/solr/collection1/conf/solrconfig.xml@@ -48,13 +48,10 @@ends) will be included.--><lib dir="../../dist/" regex="solr-cell-\d.*\.jar" />- <lib dir="../../dist/" regex="solr-clustering-\d.*\.jar" /><!--If a dir option (with or without a regex) is used and nothing isfound that matches, it will be ignored-->- <lib dir="../../contrib/clustering/lib/downloads/" />- <lib dir="../../contrib/clustering/lib/" /><lib dir="/total/crap/dir/ignored" /><!--an exact path can be used to specify a specific file. This will@@ -596,68 +593,6 @@</arr></requestHandler>- <!--- Clustering Component http://wiki.apache.org/solr/ClusteringComponent- This relies on third party jars which are not included in the- release. To use this component (and the "/clustering" handler) Those- jars will need to be downloaded, and you'll need to set the- solr.cluster.enabled system property when running solr... java- -Dsolr.clustering.enabled=true -jar start.jar- -->- <searchComponent name="clusteringComponent"- enable="${solr.clustering.enabled:false}" class="org.apache.solr.handler.clustering.ClusteringComponent">- <!-- Declare an engine -->- <lst name="engine">- <!-- The name, only one can be named "default" -->- <str name="name">default</str>- <!--- Class name of Carrot2 clustering algorithm. Currently available- algorithms are: *- org.carrot2.clustering.lingo.LingoClusteringAlgorithm *- org.carrot2.clustering.stc.STCClusteringAlgorithm See- http://project.carrot2.org/algorithms.html for the algorithm's- characteristics.- -->- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>- <!--- Overriding values for Carrot2 default algorithm attributes. For- a description of all available attributes, see:- http://download.carrot2.org/stable/manual/#chapter.components.- Use attribute key as name attribute of str elements below. These- can be further overridden for individual requests by specifying- attribute key as request parameter name and attribute value as- parameter value.- -->- <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>- </lst>- <lst name="engine">- <str name="name">stc</str>- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>- </lst>- </searchComponent>- <requestHandler name="/clustering" enable="${solr.clustering.enabled:false}"- class="solr.SearchHandler">- <lst name="defaults">- <bool name="clustering">true</bool>- <str name="clustering.engine">default</str>- <bool name="clustering.results">true</bool>- <!-- The title field -->- <str name="carrot.title">name</str>- <str name="carrot.url">id</str>- <!-- The field to cluster on -->- <str name="carrot.snippet">features</str>- <!-- produce summaries -->- <bool name="carrot.produceSummary">true</bool>- <!-- the maximum number of labels per cluster -->- <!--<int name="carrot.numDescriptions">5</int>-->- <!-- produce sub clusters -->- <bool name="carrot.outputSubClusters">false</bool>- </lst>- <arr name="last-components">- <str>clusteringComponent</str>- </arr>- </requestHandler>-<!-- Solr Cell: http://wiki.apache.org/solr/ExtractingRequestHandler --><requestHandler name="/update/extract"class="org.apache.solr.handler.extraction.ExtractingRequestHandler"diff --git a/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml b/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xmlindex c4ec6caa6f3..65dbc7c1adc 100644--- a/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml+++ b/solr/contrib/uima/src/test-files/uima/uima-tokenizers-solrconfig.xml@@ -48,13 +48,10 @@ends) will be included.--><lib dir="../../dist/" regex="solr-cell-\d.*\.jar" />- <lib dir="../../dist/" regex="solr-clustering-\d.*\.jar" /><!--If a dir option (with or without a regex) is used and nothing isfound that matches, it will be ignored-->- <lib dir="../../contrib/clustering/lib/downloads/" />- <lib dir="../../contrib/clustering/lib/" /><lib dir="/total/crap/dir/ignored" /><!--an exact path can be used to specify a specific file. This will@@ -595,68 +592,6 @@</arr></requestHandler>- <!--- Clustering Component http://wiki.apache.org/solr/ClusteringComponent- This relies on third party jars which are not included in the- release. To use this component (and the "/clustering" handler) Those- jars will need to be downloaded, and you'll need to set the- solr.cluster.enabled system property when running solr... java- -Dsolr.clustering.enabled=true -jar start.jar- -->- <searchComponent name="clusteringComponent"- enable="${solr.clustering.enabled:false}" class="org.apache.solr.handler.clustering.ClusteringComponent">- <!-- Declare an engine -->- <lst name="engine">- <!-- The name, only one can be named "default" -->- <str name="name">default</str>- <!--- Class name of Carrot2 clustering algorithm. Currently available- algorithms are: *- org.carrot2.clustering.lingo.LingoClusteringAlgorithm *- org.carrot2.clustering.stc.STCClusteringAlgorithm See- http://project.carrot2.org/algorithms.html for the algorithm's- characteristics.- -->- <str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>- <!--- Overriding values for Carrot2 default algorithm attributes. For- a description of all available attributes, see:- http://download.carrot2.org/stable/manual/#chapter.components.- Use attribute key as name attribute of str elements below. These- can be further overridden for individual requests by specifying- attribute key as request parameter name and attribute value as- parameter value.- -->- <str name="LingoClusteringAlgorithm.desiredClusterCountBase">20</str>- </lst>- <lst name="engine">- <str name="name">stc</str>- <str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>- </lst>- </searchComponent>- <requestHandler name="/clustering" enable="${solr.clustering.enabled:false}"- class="solr.SearchHandler">- <lst name="defaults">- <bool name="clustering">true</bool>- <str name="clustering.engine">default</str>- <bool name="clustering.results">true</bool>- <!-- The title field -->- <str name="carrot.title">name</str>- <str name="carrot.url">id</str>- <!-- The field to cluster on -->- <str name="carrot.snippet">features</str>- <!-- produce summaries -->- <bool name="carrot.produceSummary">true</bool>- <!-- the maximum number of labels per cluster -->- <!--<int name="carrot.numDescriptions">5</int>-->- <!-- produce sub clusters -->- <bool name="carrot.outputSubClusters">false</bool>- </lst>- <arr name="last-components">- <str>clusteringComponent</str>- </arr>- </requestHandler>-<!-- Solr Cell: http://wiki.apache.org/solr/ExtractingRequestHandler --><requestHandler name="/update/extract"class="org.apache.solr.handler.extraction.ExtractingRequestHandler"diff --git a/solr/example/solr/collection1/conf/solrconfig.xml b/solr/example/solr/collection1/conf/solrconfig.xmlindex 43cab27a814..3e4d430a720 100755--- a/solr/example/solr/collection1/conf/solrconfig.xml+++ b/solr/example/solr/collection1/conf/solrconfig.xml@@ -1371,15 +1371,9 @@<!-- Clustering Componenthttp://wiki.apache.org/solr/ClusteringComponent-- You'll need to set the solr.clustering.enabled system property- when running solr to run with clustering enabled:-- java -Dsolr.clustering.enabled=true -jar start.jar---><searchComponent name="clustering"- enable="${solr.clustering.enabled:false}"+ enable="${solr.clustering.enabled:true}"class="solr.clustering.ClusteringComponent" ><!-- Declare an engine --><lst name="engine">@@ -1445,7 +1439,7 @@--><requestHandler name="/clustering"startup="lazy"- enable="${solr.clustering.enabled:false}"+ enable="${solr.clustering.enabled:true}"class="solr.SearchHandler"><lst name="defaults"><bool name="clustering">true</bool>diff --git a/solr/example/solr/collection1/conf/velocity/cluster.vm b/solr/example/solr/collection1/conf/velocity/cluster.vmindex 49570712cb3..c501cffe363 100644--- a/solr/example/solr/collection1/conf/velocity/cluster.vm+++ b/solr/example/solr/collection1/conf/velocity/cluster.vm@@ -9,7 +9,7 @@## Div tag has placeholder text by default<div id="clusters">- Run Solr with java -Dsolr.clustering.enabled=true -jar start.jar to see results+ Loading...</div>## Replace the div content *if* Carrot^2 is available