I am implementing solr. I have a lot of tables in sql server. Now I have created a query which wil give me data from all tables in a flat single table which I will insert into solr. Here is the data I have Categories have multiple packs and packs have multiple assets which are part of single table now in Solr.
The unique key in solr is categoryid, packsid, assetid Now in Solr I need count of packs in cateogries. How can I achieve this in Solr?
What I need is to get all the result with distinct category and packid and then group it by categoryid to get the count of packs in a different categories. How can group the result that is coming from the solr query
This is what I want I have collection of rows where columns are Categoryid, Packid, Description, ImageUrl..... I need to get the distinct rows for combination of Categoryid and Packid. After getting the distinct rows I need to group these distinct rows with Categoryid, imageurl and Description containing count of Packid in it.