Hi,
I don't know if solr can manage grouping. But you can do it using an XSLT
stylesheet:
http://www.jenitennison.com/xslt/grouping/muenchian.htmlHope it helps :)
On 1/2/07, Ryan McKinley <
ryantxu@...> wrote:
> Is it possible to group the results from a solr query? I have indexed
> the content from many web pages on many sites. I'd like to return
> only two results from each site.
>
> schema.xml:
>
> <field name="uri" type="string" indexed="true" stored="true"/>
> <field name="site" type="string" indexed="true" stored="true"/>
> <field name="content" type="text" indexed="true" stored="true"/>
>
> for example
> uri:
http://en.wikipedia.org/wiki/James_Madison> site: wikipedia.org
>
> How do i get results grouped by site?
>
> Is this possible with the standard query? The website lists: "Support
> for Dynamic Result Grouping and Filtering." Is it referring to
> faceted browsing or this?
>
> If its not supported off the shelf, what is the best way to implement
> result grouping?
>
> thanks
> ryan
>
--
Salut,
====================================
Ricardo Borillo Domenech
Analista/Programador - Servei d'Informàtica
Universitat Jaume I
http://xml-utils.com