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 Jamel ESSOUSSI <ja...@gmail.com> on 2012/10/29 15:02:47 UTC
select one document with a given value for an attribute in a single
page
I have the Hi all,
I have the following schema
offer:
- offer_id
- offer_title
- offer_description
- related_shop_id
- related shop_name
- offer_price
Each offer is related to a shop.
In one shop, we have many offers
I would like show in one page (26 offers) only one offer from a shop.
I need help to implement this feature.
Thanks
--
View this message in context: http://lucene.472066.n3.nabble.com/select-one-document-with-a-given-value-for-an-attribute-in-a-single-page-tp4016679.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: select one document with a given value for an attribute in a single page
Posted by Rafał Kuć <r....@solr.pl>.
Hello!
Try the grouping feature of Solr -
http://wiki.apache.org/solr/FieldCollapsing . You can collapse
documents based on the field value, which would be a shop identifier
in your case.
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
> I have the Hi all,
> I have the following schema
> offer:
> - offer_id
> - offer_title
> - offer_description
> - related_shop_id
> - related shop_name
> - offer_price
> Each offer is related to a shop.
> In one shop, we have many offers
> I would like show in one page (26 offers) only one offer from a shop.
> I need help to implement this feature.
> Thanks
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/select-one-document-with-a-given-value-for-an-attribute-in-a-single-page-tp4016679.html
> Sent from the Solr - User mailing list archive at Nabble.com.