Getting Field Collapsing working

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Getting Field Collapsing working

John Martyniak-3
Hi everybody,

So I have applied the Ivans latest patch to a clean 1.3.

I built it using 'ant compile' and 'ant dist', got the solr build.war  
file.

Moved that into the Tomcat directory.

Modified my solrconfig.xml to include the following:
    <searchComponent name="collapse"      
class="org.apache.solr.handler.component.CollapseComponent" />
     <arr name="components">
       <str>query</str>
       <str>facet</str>
       <str>mlt</str>
       <str>highlight</str>
       <str>debug</str>
       <str>collapse</str>
     </arr>
     <arr name="first-components">
       <str>myFirstComponentName</str>
       <str>collapse</str>
     </arr>

thinking that everything should work correctly I did a search with the  
following:
http://localhost:8080/solr/select/?q=mika&version=2.2&start=0&rows=10&indent=on&collapse=true&collapse.field=type

I see the query parameters captured in the responseHeaders section,  
but I don't see a collapse section.

Does anybody have any ideas?

Any help would be greatly appreciated.

Thank you,

-John