Json document search with ability to group them by a field and return only the documents with the Maximum value of some other field within each group
I want to find the best way to perform a server-side query to find JSON documents by some initial query criteria, then grouping all these documents by some field in the document and then reducing each group to only contain…