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 Michael Lugassy <ml...@gmail.com> on 2009/07/26 00:21:41 UTC

Facet sorting by boost functions

I'm using something along ?q=_val_:"product(field1,0.5)" and was
wondering whether I could facet with category_id so that I get the
single best document (product) for each category_id (not intrested in
more than 5 of the best products in each of the highest-boosted
category).

Thanks!

Re: Facet sorting by boost functions

Posted by Michael Lugassy <ml...@gmail.com>.
apparently it does. what a great contriibution! got it to work with
1.4-dev. hopefully it will get into the stable release.

On Sun, Jul 26, 2009 at 4:39 PM, Michael Lugassy<ml...@gmail.com> wrote:
> intresting. will that patch work in 1.4?
>
> On Sun, Jul 26, 2009 at 9:56 AM, Shalin Shekhar
> Mangar<sh...@gmail.com> wrote:
>> On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy <ml...@gmail.com> wrote:
>>
>>> I'm using something along ?q=_val_:"product(field1,0.5)" and was
>>> wondering whether I could facet with category_id so that I get the
>>> single best document (product) for each category_id (not intrested in
>>> more than 5 of the best products in each of the highest-boosted
>>> category).
>>>
>>
>> I don't think there is a way to do that in one query right now. However,
>> this sounds like Field Collapsing:
>>
>> https://issues.apache.org/jira/browse/SOLR-236
>>
>> --
>> Regards,
>> Shalin Shekhar Mangar.
>>
>
>
>
> --
> Sent from my mobile
>



-- 
Sent from my mobile

Re: Facet sorting by boost functions

Posted by Michael Lugassy <ml...@gmail.com>.
intresting. will that patch work in 1.4?

On Sun, Jul 26, 2009 at 9:56 AM, Shalin Shekhar
Mangar<sh...@gmail.com> wrote:
> On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy <ml...@gmail.com> wrote:
>
>> I'm using something along ?q=_val_:"product(field1,0.5)" and was
>> wondering whether I could facet with category_id so that I get the
>> single best document (product) for each category_id (not intrested in
>> more than 5 of the best products in each of the highest-boosted
>> category).
>>
>
> I don't think there is a way to do that in one query right now. However,
> this sounds like Field Collapsing:
>
> https://issues.apache.org/jira/browse/SOLR-236
>
> --
> Regards,
> Shalin Shekhar Mangar.
>



-- 
Sent from my mobile

Re: Facet sorting by boost functions

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy <ml...@gmail.com> wrote:

> I'm using something along ?q=_val_:"product(field1,0.5)" and was
> wondering whether I could facet with category_id so that I get the
> single best document (product) for each category_id (not intrested in
> more than 5 of the best products in each of the highest-boosted
> category).
>

I don't think there is a way to do that in one query right now. However,
this sounds like Field Collapsing:

https://issues.apache.org/jira/browse/SOLR-236

-- 
Regards,
Shalin Shekhar Mangar.