Document structure of solr document is as mentioned below now i need to get the document having event_name="product view" and group it by email so that email is not duplicate.Now on listing the email how may paginate the unique email.As the query return total number of document not the count of groups
"docs":[ { "id":"1", "email":"xxx...@gmail.com", "gender":"M", "location":["yyy"], "created":123444, "event_name":"product viewed", "event_property":"product", "event_value":"sun glassed", "version":1617201602734587904, "location_str":["yyyy"] }, { "id":"4", "email":"xxx...@gmail.com", "gender":"F", "location":["zzzz"], "created":123447, "event_name":"Add To Cart", "event_property":"Name", "event_value":"sun glasses", "version":1617202784870858752, "location_str":["zzzz"] }, { "id":"5", "email":"xxx...@gmail.com", "gender":"M", "location":["kkkkk"], "created":123464, "event_name":"Product Clicked", "event_property":"Category", "event_value":"Contact Lens", "version":1617202784871907328, "location_str":["lllll"] } ] -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html