{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/232","repository_url":"https://api.github.com/repos/mongodb/mongo-php-library","labels_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/232/comments","events_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/232/events","html_url":"https://github.com/mongodb/mongo-php-library/issues/232","id":172548464,"number":232,"title":"Hint feature is not implemented?","user":{"login":"bigdaddymax","id":4097139,"avatar_url":"https://avatars.githubusercontent.com/u/4097139?v=3","gravatar_id":"","url":"https://api.github.com/users/bigdaddymax","html_url":"https://github.com/bigdaddymax","followers_url":"https://api.github.com/users/bigdaddymax/followers","following_url":"https://api.github.com/users/bigdaddymax/following{/other_user}","gists_url":"https://api.github.com/users/bigdaddymax/gists{/gist_id}","starred_url":"https://api.github.com/users/bigdaddymax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigdaddymax/subscriptions","organizations_url":"https://api.github.com/users/bigdaddymax/orgs","repos_url":"https://api.github.com/users/bigdaddymax/repos","events_url":"https://api.github.com/users/bigdaddymax/events{/privacy}","received_events_url":"https://api.github.com/users/bigdaddymax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-22T20:36:07Z","updated_at":"2016-08-25T20:36:50Z","closed_at":null,"body":"Hi, is there a way to force Mongo to use specific index when doing find() or findOne()? \r\n\r\nIt seems that hint option is not implemented in this lib.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/comments/242530573","html_url":"https://github.com/mongodb/mongo-php-library/issues/232#issuecomment-242530573","issue_url":"https://api.github.com/repos/mongodb/mongo-php-library/issues/232","id":242530573,"user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T20:36:50Z","updated_at":"2016-08-25T20:36:50Z","body":"Cross-referencing with https://github.com/mongodb/mongo-php-library/pull/214. The SPEC ticket I referred to there is currently in progress being reviewed internally, after which drivers will end up adding \"hint\" options to these methods.\r\n\r\nAt present, a hint needs to be specified via the `modifiers` option. For instance:\r\n\r\n```\r\n$collection->find(\r\n    ['x' => 1],\r\n    ['modifiers' => ['$hint' => 'index_name']],\r\n);\r\n```\r\n"}}
{"actor":{"display_login":"jmikola"}}