On May 2, 2007, at 6:55 PM, Matthew Runo wrote:
I was wondering - is it possible to search and group the results by
a given field?
For example, I have an index with several million records. Most of
them are different sizes of the same style_id.
I'd love to be able to do.. group.by=style_id or something like
that in the results, and provide the style_id as a clickable link
to see all the sizes of that style.
As far as I know there's no in-Solr grouping mechanism. But we use
the XSLTResponseWriter for this:
http://wiki.apache.org/solr/XsltResponseWriter (look near the bottom)