Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "ClusteringComponent" page has been changed by HossMan. The comment on this change is: Updating per SOLR-1521. http://wiki.apache.org/solr/ClusteringComponent?action=diff&rev1=32&rev2=33 -------------------------------------------------- == Quick Start == - To run the example, cd to the Solr install directory, then: + Once you have downloaded the library dependencies, you can run the example using the following commands: {{{ - $ ant example #builds the local example for clustering, including downloading jars $ cd example - $ java -Dsolr.solr.home=../contrib/clustering/example -jar start.jar + $ java -Dsolr.clustering.enabled=true -jar start.jar }}} + + This is the same as the main Solr example, using the same index, but with the clustering component and a SearchHandler configured to use that component enabled. + - Then, in a different window, add some docs using the post tool in the exampledocs directory. + In a different window, add some docs using the post tool in the exampledocs directory (if you haven't already). {{{ $ cd example/exampledocs $ ./post.sh *.xml }}} - Now try a query that turns on clustering (clustering=true): + Now try a query using the handler configured for clustering (It is confugred with clustering=true as a default param): {{{ - http://localhost:8983/solr/select?indent=on&q=*:*&rows=10&clustering=true + http://localhost:8983/solr/clustering?q=*:*&rows=10 }}} This should yield results that include cluster information at the bottom of the response, like: {{{
