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

Reply via email to