You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kai Schlamp <ka...@googlemail.com> on 2011/03/14 04:58:56 UTC

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

Re: Problem with field collapsing of patched Solr 1.4

Posted by Thalaiselvam <th...@yahoo.co.in>.
Hi,

Iam using solr collapse, it is working perfectly with default sorting
(score), when we give the more than fileld in sort with pagination, it
through incorrect result. 

Could any one help to solve this?.

Thanks in advance...

Regards
Thalaiselvam N


--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-field-collapsing-of-patched-Solr-1-4-tp2678850p3094555.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Problem with field collapsing of patched Solr 1.4

Posted by Kai Schlamp-2 <ka...@googlemail.com>.
Afroz Ahmad wrote:
> 
> Have you enabled the collapse component in solconfig.xml?
> 
> &lt;searchComponent name=&quot;query&quot;
> class=&quot;org.apache.solr.handler.component.CollapseComponent&quot;
> /&gt;
> 

No, it seems that I missed that completely. Thank you, Afroz. It works fine
now.

Kai


--
View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-field-collapsing-of-patched-Solr-1-4-tp2678850p2724321.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Problem with field collapsing of patched Solr 1.4

Posted by Afroz Ahmad <ah...@gmail.com>.
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
<ka...@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 &lt;kai.schlamp@googlemail.com&gt;
> >> 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.
>

Re: Problem with field collapsing of patched Solr 1.4

Posted by Kai Schlamp-2 <ka...@googlemail.com>.
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 &lt;kai.schlamp@googlemail.com&gt;
>> 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.

Re: Problem with field collapsing of patched Solr 1.4

Posted by Otis Gospodnetic <ot...@yahoo.com>.
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 <ka...@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
>