mirror of https://github.com/apache/lucene.git
SOLR-8294: Cleanup solrconfig.xmls under solr/example/example-DIH/solr (removed obsolete clustering handler sections).
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1714856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
95dbd95e62
commit
a03ed96eae
|
@ -429,6 +429,9 @@ Optimizations
|
|||
Other Changes
|
||||
----------------------
|
||||
|
||||
* SOLR-8294: Cleanup solrconfig.xmls under solr/example/example-DIH/solr (removed
|
||||
obsolete clustering handler sections). (Dawid Weiss)
|
||||
|
||||
* SOLR-7969: Unavailable clustering engines should not fail the core. (Dawid Weiss)
|
||||
|
||||
* SOLR-7790, SOLR-7791: Update Carrot2 clustering component to
|
||||
|
|
|
@ -77,9 +77,6 @@
|
|||
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
|
||||
|
||||
|
@ -1199,105 +1196,6 @@
|
|||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Clustering Component
|
||||
|
||||
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
|
||||
|
||||
http://wiki.apache.org/solr/ClusteringComponent
|
||||
http://carrot2.github.io/solr-integration-strategies/
|
||||
-->
|
||||
<searchComponent name="clustering"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.clustering.ClusteringComponent" >
|
||||
<lst name="engine">
|
||||
<str name="name">lingo</str>
|
||||
|
||||
<!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
|
||||
|
||||
Currently available open source algorithms are:
|
||||
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
||||
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
||||
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
||||
|
||||
See http://project.carrot2.org/algorithms.html for more information.
|
||||
|
||||
A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
|
||||
* com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
|
||||
-->
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
|
||||
|
||||
<!-- Override location of the clustering algorithm's resources
|
||||
(attribute definitions and lexical resources).
|
||||
|
||||
A directory from which to load algorithm-specific stop words,
|
||||
stop labels and attribute definition XMLs.
|
||||
|
||||
For an overview of Carrot2 lexical resources, see:
|
||||
http://download.carrot2.org/head/manual/#chapter.lexical-resources
|
||||
|
||||
For an overview of Lingo3G lexical resources, see:
|
||||
http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
|
||||
-->
|
||||
<str name="carrot.resourcesDir">clustering/carrot2</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the STC clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">stc</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the bisecting kmeans clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">kmeans</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
|
||||
</lst>
|
||||
</searchComponent>
|
||||
|
||||
<!-- A request handler for demonstrating the clustering component
|
||||
|
||||
This is purely as an example.
|
||||
|
||||
In reality you will likely want to add the component to your
|
||||
already specified request handlers.
|
||||
-->
|
||||
<requestHandler name="/clustering"
|
||||
startup="lazy"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.SearchHandler">
|
||||
<lst name="defaults">
|
||||
<bool name="clustering">true</bool>
|
||||
<bool name="clustering.results">true</bool>
|
||||
<!-- Field name with the logical "title" of a each document (optional) -->
|
||||
<str name="carrot.title">name</str>
|
||||
<!-- Field name with the logical "URL" of a each document (optional) -->
|
||||
<str name="carrot.url">id</str>
|
||||
<!-- Field name with the logical "content" of a each document (optional) -->
|
||||
<str name="carrot.snippet">features</str>
|
||||
<!-- Apply highlighter to the title/ content and use this for clustering. -->
|
||||
<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>
|
||||
|
||||
<!-- Configure the remaining request handler parameters. -->
|
||||
<str name="defType">edismax</str>
|
||||
<str name="qf">
|
||||
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
|
||||
</str>
|
||||
<str name="q.alt">*:*</str>
|
||||
<str name="rows">10</str>
|
||||
<str name="fl">*,score</str>
|
||||
</lst>
|
||||
<arr name="last-components">
|
||||
<str>clustering</str>
|
||||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Terms Component
|
||||
|
||||
http://wiki.apache.org/solr/TermsComponent
|
||||
|
|
|
@ -80,9 +80,6 @@
|
|||
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
|
||||
|
||||
|
@ -869,6 +866,7 @@
|
|||
</lst>
|
||||
</requestHandler>
|
||||
|
||||
|
||||
<!-- A Robust Example
|
||||
|
||||
This example SearchHandler declaration shows off usage of the
|
||||
|
@ -1201,105 +1199,6 @@
|
|||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Clustering Component
|
||||
|
||||
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
|
||||
|
||||
http://wiki.apache.org/solr/ClusteringComponent
|
||||
http://carrot2.github.io/solr-integration-strategies/
|
||||
-->
|
||||
<searchComponent name="clustering"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.clustering.ClusteringComponent" >
|
||||
<lst name="engine">
|
||||
<str name="name">lingo</str>
|
||||
|
||||
<!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
|
||||
|
||||
Currently available open source algorithms are:
|
||||
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
||||
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
||||
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
||||
|
||||
See http://project.carrot2.org/algorithms.html for more information.
|
||||
|
||||
A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
|
||||
* com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
|
||||
-->
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
|
||||
|
||||
<!-- Override location of the clustering algorithm's resources
|
||||
(attribute definitions and lexical resources).
|
||||
|
||||
A directory from which to load algorithm-specific stop words,
|
||||
stop labels and attribute definition XMLs.
|
||||
|
||||
For an overview of Carrot2 lexical resources, see:
|
||||
http://download.carrot2.org/head/manual/#chapter.lexical-resources
|
||||
|
||||
For an overview of Lingo3G lexical resources, see:
|
||||
http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
|
||||
-->
|
||||
<str name="carrot.resourcesDir">clustering/carrot2</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the STC clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">stc</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the bisecting kmeans clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">kmeans</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
|
||||
</lst>
|
||||
</searchComponent>
|
||||
|
||||
<!-- A request handler for demonstrating the clustering component
|
||||
|
||||
This is purely as an example.
|
||||
|
||||
In reality you will likely want to add the component to your
|
||||
already specified request handlers.
|
||||
-->
|
||||
<requestHandler name="/clustering"
|
||||
startup="lazy"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.SearchHandler">
|
||||
<lst name="defaults">
|
||||
<bool name="clustering">true</bool>
|
||||
<bool name="clustering.results">true</bool>
|
||||
<!-- Field name with the logical "title" of a each document (optional) -->
|
||||
<str name="carrot.title">name</str>
|
||||
<!-- Field name with the logical "URL" of a each document (optional) -->
|
||||
<str name="carrot.url">id</str>
|
||||
<!-- Field name with the logical "content" of a each document (optional) -->
|
||||
<str name="carrot.snippet">features</str>
|
||||
<!-- Apply highlighter to the title/ content and use this for clustering. -->
|
||||
<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>
|
||||
|
||||
<!-- Configure the remaining request handler parameters. -->
|
||||
<str name="defType">edismax</str>
|
||||
<str name="qf">
|
||||
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
|
||||
</str>
|
||||
<str name="q.alt">*:*</str>
|
||||
<str name="rows">10</str>
|
||||
<str name="fl">*,score</str>
|
||||
</lst>
|
||||
<arr name="last-components">
|
||||
<str>clustering</str>
|
||||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Terms Component
|
||||
|
||||
http://wiki.apache.org/solr/TermsComponent
|
||||
|
|
|
@ -77,9 +77,6 @@
|
|||
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
|
||||
|
||||
|
@ -1198,105 +1195,6 @@
|
|||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Clustering Component
|
||||
|
||||
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
|
||||
|
||||
http://wiki.apache.org/solr/ClusteringComponent
|
||||
http://carrot2.github.io/solr-integration-strategies/
|
||||
-->
|
||||
<searchComponent name="clustering"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.clustering.ClusteringComponent" >
|
||||
<lst name="engine">
|
||||
<str name="name">lingo</str>
|
||||
|
||||
<!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
|
||||
|
||||
Currently available open source algorithms are:
|
||||
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
||||
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
||||
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
||||
|
||||
See http://project.carrot2.org/algorithms.html for more information.
|
||||
|
||||
A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
|
||||
* com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
|
||||
-->
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
|
||||
|
||||
<!-- Override location of the clustering algorithm's resources
|
||||
(attribute definitions and lexical resources).
|
||||
|
||||
A directory from which to load algorithm-specific stop words,
|
||||
stop labels and attribute definition XMLs.
|
||||
|
||||
For an overview of Carrot2 lexical resources, see:
|
||||
http://download.carrot2.org/head/manual/#chapter.lexical-resources
|
||||
|
||||
For an overview of Lingo3G lexical resources, see:
|
||||
http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
|
||||
-->
|
||||
<str name="carrot.resourcesDir">clustering/carrot2</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the STC clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">stc</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the bisecting kmeans clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">kmeans</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
|
||||
</lst>
|
||||
</searchComponent>
|
||||
|
||||
<!-- A request handler for demonstrating the clustering component
|
||||
|
||||
This is purely as an example.
|
||||
|
||||
In reality you will likely want to add the component to your
|
||||
already specified request handlers.
|
||||
-->
|
||||
<requestHandler name="/clustering"
|
||||
startup="lazy"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.SearchHandler">
|
||||
<lst name="defaults">
|
||||
<bool name="clustering">true</bool>
|
||||
<bool name="clustering.results">true</bool>
|
||||
<!-- Field name with the logical "title" of a each document (optional) -->
|
||||
<str name="carrot.title">name</str>
|
||||
<!-- Field name with the logical "URL" of a each document (optional) -->
|
||||
<str name="carrot.url">id</str>
|
||||
<!-- Field name with the logical "content" of a each document (optional) -->
|
||||
<str name="carrot.snippet">features</str>
|
||||
<!-- Apply highlighter to the title/ content and use this for clustering. -->
|
||||
<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>
|
||||
|
||||
<!-- Configure the remaining request handler parameters. -->
|
||||
<str name="defType">edismax</str>
|
||||
<str name="qf">
|
||||
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
|
||||
</str>
|
||||
<str name="q.alt">*:*</str>
|
||||
<str name="rows">10</str>
|
||||
<str name="fl">*,score</str>
|
||||
</lst>
|
||||
<arr name="last-components">
|
||||
<str>clustering</str>
|
||||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Terms Component
|
||||
|
||||
http://wiki.apache.org/solr/TermsComponent
|
||||
|
|
|
@ -77,9 +77,6 @@
|
|||
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
|
||||
|
||||
|
@ -896,7 +893,6 @@
|
|||
</lst>
|
||||
</requestHandler>
|
||||
|
||||
|
||||
<initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
|
||||
<lst name="defaults">
|
||||
<str name="df">text</str>
|
||||
|
@ -1199,105 +1195,6 @@
|
|||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Clustering Component
|
||||
|
||||
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
|
||||
|
||||
http://wiki.apache.org/solr/ClusteringComponent
|
||||
http://carrot2.github.io/solr-integration-strategies/
|
||||
-->
|
||||
<searchComponent name="clustering"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.clustering.ClusteringComponent" >
|
||||
<lst name="engine">
|
||||
<str name="name">lingo</str>
|
||||
|
||||
<!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
|
||||
|
||||
Currently available open source algorithms are:
|
||||
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
||||
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
||||
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
||||
|
||||
See http://project.carrot2.org/algorithms.html for more information.
|
||||
|
||||
A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
|
||||
* com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
|
||||
-->
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
|
||||
|
||||
<!-- Override location of the clustering algorithm's resources
|
||||
(attribute definitions and lexical resources).
|
||||
|
||||
A directory from which to load algorithm-specific stop words,
|
||||
stop labels and attribute definition XMLs.
|
||||
|
||||
For an overview of Carrot2 lexical resources, see:
|
||||
http://download.carrot2.org/head/manual/#chapter.lexical-resources
|
||||
|
||||
For an overview of Lingo3G lexical resources, see:
|
||||
http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
|
||||
-->
|
||||
<str name="carrot.resourcesDir">clustering/carrot2</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the STC clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">stc</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the bisecting kmeans clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">kmeans</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
|
||||
</lst>
|
||||
</searchComponent>
|
||||
|
||||
<!-- A request handler for demonstrating the clustering component
|
||||
|
||||
This is purely as an example.
|
||||
|
||||
In reality you will likely want to add the component to your
|
||||
already specified request handlers.
|
||||
-->
|
||||
<requestHandler name="/clustering"
|
||||
startup="lazy"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.SearchHandler">
|
||||
<lst name="defaults">
|
||||
<bool name="clustering">true</bool>
|
||||
<bool name="clustering.results">true</bool>
|
||||
<!-- Field name with the logical "title" of a each document (optional) -->
|
||||
<str name="carrot.title">name</str>
|
||||
<!-- Field name with the logical "URL" of a each document (optional) -->
|
||||
<str name="carrot.url">id</str>
|
||||
<!-- Field name with the logical "content" of a each document (optional) -->
|
||||
<str name="carrot.snippet">features</str>
|
||||
<!-- Apply highlighter to the title/ content and use this for clustering. -->
|
||||
<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>
|
||||
|
||||
<!-- Configure the remaining request handler parameters. -->
|
||||
<str name="defType">edismax</str>
|
||||
<str name="qf">
|
||||
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
|
||||
</str>
|
||||
<str name="q.alt">*:*</str>
|
||||
<str name="rows">10</str>
|
||||
<str name="fl">*,score</str>
|
||||
</lst>
|
||||
<arr name="last-components">
|
||||
<str>clustering</str>
|
||||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Terms Component
|
||||
|
||||
http://wiki.apache.org/solr/TermsComponent
|
||||
|
|
|
@ -78,9 +78,6 @@
|
|||
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
|
||||
|
||||
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
|
||||
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
|
||||
|
||||
|
@ -1201,105 +1198,6 @@
|
|||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Clustering Component
|
||||
|
||||
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
|
||||
|
||||
http://wiki.apache.org/solr/ClusteringComponent
|
||||
http://carrot2.github.io/solr-integration-strategies/
|
||||
-->
|
||||
<searchComponent name="clustering"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.clustering.ClusteringComponent" >
|
||||
<lst name="engine">
|
||||
<str name="name">lingo</str>
|
||||
|
||||
<!-- Class name of a clustering algorithm compatible with the Carrot2 framework.
|
||||
|
||||
Currently available open source algorithms are:
|
||||
* org.carrot2.clustering.lingo.LingoClusteringAlgorithm
|
||||
* org.carrot2.clustering.stc.STCClusteringAlgorithm
|
||||
* org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm
|
||||
|
||||
See http://project.carrot2.org/algorithms.html for more information.
|
||||
|
||||
A commercial algorithm Lingo3G (needs to be installed separately) is defined as:
|
||||
* com.carrotsearch.lingo3g.Lingo3GClusteringAlgorithm
|
||||
-->
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.lingo.LingoClusteringAlgorithm</str>
|
||||
|
||||
<!-- Override location of the clustering algorithm's resources
|
||||
(attribute definitions and lexical resources).
|
||||
|
||||
A directory from which to load algorithm-specific stop words,
|
||||
stop labels and attribute definition XMLs.
|
||||
|
||||
For an overview of Carrot2 lexical resources, see:
|
||||
http://download.carrot2.org/head/manual/#chapter.lexical-resources
|
||||
|
||||
For an overview of Lingo3G lexical resources, see:
|
||||
http://download.carrotsearch.com/lingo3g/manual/#chapter.lexical-resources
|
||||
-->
|
||||
<str name="carrot.resourcesDir">clustering/carrot2</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the STC clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">stc</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.stc.STCClusteringAlgorithm</str>
|
||||
</lst>
|
||||
|
||||
<!-- An example definition for the bisecting kmeans clustering algorithm. -->
|
||||
<lst name="engine">
|
||||
<str name="name">kmeans</str>
|
||||
<str name="carrot.algorithm">org.carrot2.clustering.kmeans.BisectingKMeansClusteringAlgorithm</str>
|
||||
</lst>
|
||||
</searchComponent>
|
||||
|
||||
<!-- A request handler for demonstrating the clustering component
|
||||
|
||||
This is purely as an example.
|
||||
|
||||
In reality you will likely want to add the component to your
|
||||
already specified request handlers.
|
||||
-->
|
||||
<requestHandler name="/clustering"
|
||||
startup="lazy"
|
||||
enable="${solr.clustering.enabled:false}"
|
||||
class="solr.SearchHandler">
|
||||
<lst name="defaults">
|
||||
<bool name="clustering">true</bool>
|
||||
<bool name="clustering.results">true</bool>
|
||||
<!-- Field name with the logical "title" of a each document (optional) -->
|
||||
<str name="carrot.title">name</str>
|
||||
<!-- Field name with the logical "URL" of a each document (optional) -->
|
||||
<str name="carrot.url">id</str>
|
||||
<!-- Field name with the logical "content" of a each document (optional) -->
|
||||
<str name="carrot.snippet">features</str>
|
||||
<!-- Apply highlighter to the title/ content and use this for clustering. -->
|
||||
<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>
|
||||
|
||||
<!-- Configure the remaining request handler parameters. -->
|
||||
<str name="defType">edismax</str>
|
||||
<str name="qf">
|
||||
text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
|
||||
</str>
|
||||
<str name="q.alt">*:*</str>
|
||||
<str name="rows">10</str>
|
||||
<str name="fl">*,score</str>
|
||||
</lst>
|
||||
<arr name="last-components">
|
||||
<str>clustering</str>
|
||||
</arr>
|
||||
</requestHandler>
|
||||
|
||||
<!-- Terms Component
|
||||
|
||||
http://wiki.apache.org/solr/TermsComponent
|
||||
|
|
Loading…
Reference in New Issue