Have you enabled the collapse component in solconfig.xml? <searchComponent name="query" class="org.apache.solr.handler.component.CollapseComponent" />
Thanks afroz On Fri, Mar 18, 2011 at 8:14 PM, Kai Schlamp-2 <kai.schl...@googlemail.com>wrote: > Unfortunately I have to use Solr 1.4.x or 3.x as one of the interfaces to > access Solr uses Sunspot (a Ruby Solr library), which doesn't seem to be > compatible with 4.x. > > Kai > > > Otis Gospodnetic-2 wrote: > > > > Kai, try SOLR-1086 with Solr trunk instead if trunk is OK for you. > > > > Otis > > ---- > > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch > > Lucene ecosystem search :: http://search-lucene.com/ > > > > > > > > ----- Original Message ---- > >> From: Kai Schlamp <kai.schl...@googlemail.com> > >> To: solr-user@lucene.apache.org > >> Sent: Sun, March 13, 2011 11:58:56 PM > >> Subject: Problem with field collapsing of patched Solr 1.4 > >> > >> Hello. > >> > >> I just tried to patch Solr 1.4 with the field collapsing patch of > >> https://issues.apache.org/jira/browse/SOLR-236. The patching and build > >> process seemed to be ok (below are the steps I did), but the field > >> collapsing feature doesn't seem to work. > >> When I go to `http://localhost:8982/solr/select/?q=*:*` I correctly > >> get 10 documents as result. > >> When going to > >>` > http://localhost:8982/solr/select/?q=*:*&collapse=true&collapse.field=tag_name_ss&collapse.max=1` > >> > >> (tag_name_ss is surely a field with content) I get the same 10 docs as > >> result back. No further information regarding the field collapsing. > >> What do I miss? Do I have to activate it somehow? > >> > >> * Downloaded > >>[Solr]( > http://apache.lauf-forum.at//lucene/solr/1.4.1/apache-solr-1.4.1.tgz) > >> * Downloaded > >>[SOLR-236-1_4_1-paging-totals-working.patch]( > https://issues.apache.org/jira/secure/attachment/12459716/SOLR-236-1_4_1-paging-totals-working.patch > ) > >> > >> * Changed line 2837 of that patch to `@@ -0,0 +1,511 @@` (regarding > >> this > >>[comment]( > https://issues.apache.org/jira/browse/SOLR-236?focusedCommentId=12932905&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12932905 > )) > >> > >> * Downloaded > >>[SOLR-236-1_4_1-NPEfix.patch]( > https://issues.apache.org/jira/secure/attachment/12470202/SOLR-236-1_4_1-NPEfix.patch > ) > >> > >> * Extracted the Solr archive > >> * Applied both patches: > >> ** `cd apache-solr-1.4.1` > >> ** `patch -p0 < ../SOLR-236-1_4_1-paging-totals-working.patch` > >> ** `patch -p0 < ../SOLR-236-1_4_1-NPEfix.patch` > >> * Build Solr > >> ** `ant clean` > >> ** `ant example` ... tells me "BUILD SUCCESSFUL" > >> * Reindexed everything (using Sunspot Solr) > >> * Solr info tells me correctly "Solr Specification Version: > >> 1.4.1.2011.03.14.04.29.20" > >> > >> Kai > >> > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Problem-with-field-collapsing-of-patched-Solr-1-4-tp2678850p2701061.html > Sent from the Solr - User mailing list archive at Nabble.com. >