Chun,

Have you looked at Grouping / Field Collapsing feature in solr?

https://wiki.apache.org/solr/FieldCollapsing

If shop is one of your field, you can use field collapsing on that field
with a maximum of 'n' to return per field value (or group).

Sameer.
--
www.measuredsearch.com
tw: measuredsearch

On Wednesday, February 12, 2014, rachun <rachun.c...@gmail.com> wrote:

> Dear all gurus,
>
>
> I would like to limit amount of search result, let's say I have many shop
> which is selling shirt. So when I search "white shirt" I want to give a
> maximum number per shop (ex. 5).
>
> The result should be like this...
> -> Shop A
> -> Shop A
> -> Shop B
> -> Shop B
> -> Shop B
> -> Shop B
> -> Shop B
> -> Shop C
> -> Shop C
> -> Shop C
>
> any suggestion would be very appreciate.
>
> Thank you very much,
> Chun.
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Limit-amount-of-search-result-tp4117062.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


-- 
Sameer Maggon
Founder, Measured Search
m: 310.344.7266
tw: @measuredsearch
w: http://www.measuredsearch.com

Reply via email to