Support solr field collapsing/result grouping

(Still needs the UI layer)