[JAVA-1852] how apply pagination and sorting functionality issue collection.distinct() Created: 02/Jun/15 Updated: 11/Sep/19 Resolved: 23/Jun/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | basker | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | query | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
unix- eclipse- java |
||
| Description |
|
sample code: "; |
| Comments |
| Comment by Jeffrey Yemin [ 08/Jun/15 ] | ||||
|
The server's distinct command doesn't support skip, limit, or sort. Have you looked at the aggregation framework as an alternative? In the shell, it would look something like this:
In the future, questions like this are better asked on either the mongodb-users Google group or Stack Overflow. Regards, |