[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:
Depends
depends on SERVER-18518 Add filter support for listIndexes Backlog

 Description   

It would be handy to have a method getIndex in drivers' APIs and in the mongo shell too.
This method would return a single index by name.

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:
http://stackoverflow.com/questions/31456202/mongodb-getindex-amend-ttl-index



 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.

Generated at Thu Feb 08 08:21:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.