{"action":"created","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/345","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/345/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/345/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/345","id":114310852,"number":345,"title":"index.search().fetch() sometimes returns no results on client","user":{"login":"jamiecollinson","id":3263722,"avatar_url":"https://avatars.githubusercontent.com/u/3263722?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiecollinson","html_url":"https://github.com/jamiecollinson","followers_url":"https://api.github.com/users/jamiecollinson/followers","following_url":"https://api.github.com/users/jamiecollinson/following{/other_user}","gists_url":"https://api.github.com/users/jamiecollinson/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiecollinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiecollinson/subscriptions","organizations_url":"https://api.github.com/users/jamiecollinson/orgs","repos_url":"https://api.github.com/users/jamiecollinson/repos","events_url":"https://api.github.com/users/jamiecollinson/events{/privacy}","received_events_url":"https://api.github.com/users/jamiecollinson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/labels/Project:Core","name":"Project:Core","color":"207de5"},{"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-10-30T16:55:14Z","updated_at":"2015-11-05T18:53:11Z","closed_at":null,"body":"I have an index which is reliably working with EasySearch components and with the server side JS API, but if I use it on the client side with `index.search(query).fetch()` it intermittently fails to return results.\r\n\r\nLooking at the cursor returned by `index.search(query)` I can see that the no data results coincide with the cursor's `_isReady` property being false.\r\n\r\nShould I be doing something to wait for `_isReady`? Alternatively is it recommended to do client side API calls via a method call to the server?"},"comment":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/comments/154151473","html_url":"https://github.com/matteodem/meteor-easy-search/issues/345#issuecomment-154151473","issue_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/345","id":154151473,"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-11-05T18:53:11Z","updated_at":"2015-11-05T18:53:11Z","body":"I think it's fine but I definitely wouldn't make it possible to specify the collection name or at least restrict the allowed strings there. Also do `check` calls for every argument there, otherwise you might get XSS attacks."}}