[DRIVERS-244] get index by name Created: 17/Jul/15 Updated: 15/Apr/19 Resolved: 04/Oct/16 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | ?ukasz Wiktor [X] | Assignee: | Barrie Segal |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
It would be handy to have a method getIndex in drivers' APIs and in the mongo shell too. Currently there is a workaround to use findOne on system.indexes collection but as I see it's deprecated since version 3.0 and the suggested solution is to use listIndexes which forces me to iterate over the list when I want to find a particular index. Here is a stackoverflow post that shows the need for getIndex method: |
| Comments |
| Comment by Rathi Gnanasekaran [ 04/Oct/16 ] |
|
Closing the issue as Won't fix as the feature is not implemented in the server. We will re-open the ticket when SERVER-18518 is completed. |