{"action":"created","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/131","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/131/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/131/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/131","id":55553932,"number":131,"title":"\"returnFields\" not working","user":{"login":"jasonshouse","id":2614763,"avatar_url":"https://avatars.githubusercontent.com/u/2614763?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonshouse","html_url":"https://github.com/jasonshouse","followers_url":"https://api.github.com/users/jasonshouse/followers","following_url":"https://api.github.com/users/jasonshouse/following{/other_user}","gists_url":"https://api.github.com/users/jasonshouse/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonshouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonshouse/subscriptions","organizations_url":"https://api.github.com/users/jasonshouse/orgs","repos_url":"https://api.github.com/users/jasonshouse/repos","events_url":"https://api.github.com/users/jasonshouse/events{/privacy}","received_events_url":"https://api.github.com/users/jasonshouse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-26T23:35:54Z","updated_at":"2015-01-27T15:52:44Z","closed_at":null,"body":"Hello! I cannot figure out how to access the original Document data from my search results. I've tried passing in fields in \"returnFields\", but it doesn't seem to be returning anything.\r\n\r\nHTML\r\n{{> esAutosuggest index=\"geos\" reactive=\"false\" class=\"search-box\" placeholder=\"City, Zip, etc.\" renderSuggestion=suggestion }}\r\n\r\nJS\r\nEasySearch.createSearchIndex('geos', {\r\n  'use':'mongo-db',\r\n  'field':['desc'],\r\n  'collection': Geos,\r\n  'limit': 7,\r\n  'returnFields': ['feedId','geoId','type'],\r\n  'sort': function(){\r\n    return { 'type':-1, 'listingCount':-1}\r\n  },\r\n  'query': function(searchString,opts){\r\n    var query = EasySearch.getSearcher(this.use).defaultQuery(this,searchString);\r\n    return query;\r\n  }\r\n});\r\n\r\nAfter a user selects an option from the drop down menu, I grab the value using: instance.get('autosuggestSelected'). However, only some of the Document is returned... it's \"desc\" field, \"pos\" and \"id\", but nothing else! Based on the 'returnFields' array above, shouldn't I be seeing those additional fields?\r\n\r\nHere's my result object:\r\n{\r\n  id: \"9stWdSikLu8ZSZ2wh\",\r\n  pos: 0,\r\n  value: \"Austin\"   // <-- that is the 'desc' field\r\n}\r\n\r\nThank you for all your help and contributions, your easy-search package has saved me SO much time!\r\n"},"comment":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/comments/71670829","html_url":"https://github.com/matteodem/meteor-easy-search/issues/131#issuecomment-71670829","issue_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/131","id":71670829,"user":{"login":"matteodem","id":1301147,"avatar_url":"https://avatars.githubusercontent.com/u/1301147?v=3","gravatar_id":"","url":"https://api.github.com/users/matteodem","html_url":"https://github.com/matteodem","followers_url":"https://api.github.com/users/matteodem/followers","following_url":"https://api.github.com/users/matteodem/following{/other_user}","gists_url":"https://api.github.com/users/matteodem/gists{/gist_id}","starred_url":"https://api.github.com/users/matteodem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteodem/subscriptions","organizations_url":"https://api.github.com/users/matteodem/orgs","repos_url":"https://api.github.com/users/matteodem/repos","events_url":"https://api.github.com/users/matteodem/events{/privacy}","received_events_url":"https://api.github.com/users/matteodem/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T15:52:44Z","updated_at":"2015-01-27T15:52:44Z","body":"You can call findOne on the collection itself. Are you working with events? What scope are you in when trying to access the docs?"}}