lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "ClusteringComponent" by YonikSeeley
Date Sat, 04 Jul 2009 16:18:29 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by YonikSeeley:
http://wiki.apache.org/solr/ClusteringComponent

The comment on the change is:
simplify clustering URL

------------------------------------------------------------------------------
  In the Solr example ({{{<path to solr>/example}}}), the clustering sub directory contains
a simple example that works off of the existing sample documents, but does clustering on them.
  
  To run the example, cd to the example directory, then:
+ {{{
  java -Dsolr.solr.home=./clustering/solr -jar start.jar
- 
+ }}}
  Then, add some docs using the post tool in the exampledocs directory.
  
  The configuration (solrconfig.xml) looks like:
@@ -120, +121 @@

  The thing to note here is the mapping of Solr Fields (name, id, etc.) to the Carrot2 needs
of title, snippet and url. Clustering will take into account the text of title and snippet.
  
  Next, inputting a query that turns on clustering (clustering=true:
- {{{http://localhost:8983/solr/select?indent=on&version=2.2&q=*%3A*&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=&clustering=true}}}
+ {{{http://localhost:8983/solr/select?indent=on&q=*:*&rows=10&clustering=true}}}
  
  yields the results like:
  {{{

Mime
View raw message