{"action":"opened","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/628","repository_url":"https://api.github.com/repos/matteodem/meteor-easy-search","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/628/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/628/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/628/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/628","id":273423450,"number":628,"title":"func.apply is not a function","user":{"login":"JulianKingman","id":1566400,"avatar_url":"https://avatars1.githubusercontent.com/u/1566400?v=4","gravatar_id":"","url":"https://api.github.com/users/JulianKingman","html_url":"https://github.com/JulianKingman","followers_url":"https://api.github.com/users/JulianKingman/followers","following_url":"https://api.github.com/users/JulianKingman/following{/other_user}","gists_url":"https://api.github.com/users/JulianKingman/gists{/gist_id}","starred_url":"https://api.github.com/users/JulianKingman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulianKingman/subscriptions","organizations_url":"https://api.github.com/users/JulianKingman/orgs","repos_url":"https://api.github.com/users/JulianKingman/repos","events_url":"https://api.github.com/users/JulianKingman/events{/privacy}","received_events_url":"https://api.github.com/users/JulianKingman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-13T13:08:28Z","updated_at":"2017-11-13T13:08:28Z","closed_at":null,"author_association":"NONE","body":"I have a search set up, but it gives me the following error:\r\n```bash\r\nI20171113-08:00:00.703(-5)? Exception from sub links/easySearch id FNubgcTwjoetD9gHq TypeError: func.apply is not a function\r\nI20171113-08:00:00.703(-5)?     at MongoDBEngine.callConfigMethod (packages/easysearch:core/lib/core/engine.js:50:19)\r\nI20171113-08:00:00.704(-5)?     at MongoDBEngine.getFindOptions (packages/easysearch:core/lib/engines/mongo-db.js:74:18)\r\nI20171113-08:00:00.704(-5)?     at MongoDBEngine.getSearchCursor (packages/easysearch:core/lib/engines/mongo-db.js:92:26)\r\nI20171113-08:00:00.704(-5)?     at MongoDBEngine.search (packages/easysearch:core/lib/core/reactive-engine.js:107:19)\r\nI20171113-08:00:00.704(-5)?     at [object Object]._handler (packages/easysearch:core/lib/core/search-collection.js:179:43)\r\nI20171113-08:00:00.704(-5)?     at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1768:12)\r\nI20171113-08:00:00.705(-5)?     at packages/ddp-server/livedata_server.js:1043:15\r\nI20171113-08:00:00.705(-5)?     at [object Object]._.extend.withValue (packages/meteor.js:1126:17)\r\nI20171113-08:00:00.705(-5)?     at [object Object]._.extend._runHandler (packages/ddp-server/livedata_server.js:1041:51)\r\nI20171113-08:00:00.705(-5)?     at [object Object]._.extend._startSubscription (packages/ddp-server/livedata_server.js:859:9)\r\nI20171113-08:00:00.705(-5)?     at [object Object]._.extend.protocol_handlers.sub (packages/ddp-server/livedata_server.js:625:12)\r\nI20171113-08:00:00.706(-5)?     at packages/ddp-server/livedata_server.js:559:43\r\n```\r\n\r\nMy config looks like this:\r\n```javascript\r\nLinks = new Mongo.Collection('links');\r\n\r\nsearchableLinks = new Index({\r\n  collection: Links,\r\n  fields: ['url', 'status', 'notes', 'user'],\r\n  engine: new MongoDBEngine({\r\n    sort: {updatedAt: -1},\r\n    limit(searchObject, options) {\r\n      return options.search.props.limit || 50;\r\n    }\r\n  })\r\n});\r\n```\r\n\r\nTemplate:\r\n```javascript\r\nTemplate.links.helpers({\r\n    searchableLinks: () => searchableLinks,\r\n});\r\n```\r\n```html\r\n{{#EasySearch.Each index=searchableLinks}}\r\n  <li>data goes here...</li>\r\n{{/EasySearch.Each}}\r\n```\r\n\r\nAny ideas what could be wrong?"}}
{"actor":{"display_login":"JulianKingman"}}