{"action":"opened","issue":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/940","repository_url":"https://api.github.com/repos/algolia/instantsearch.js","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/940/labels{/name}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/940/comments","events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/940/events","html_url":"https://github.com/algolia/instantsearch.js/issues/940","id":142350988,"number":940,"title":"Documentation missing of how to implement debounce in searchbox widget","user":{"login":"powtac","id":36167,"avatar_url":"https://avatars.githubusercontent.com/u/36167?v=3","gravatar_id":"","url":"https://api.github.com/users/powtac","html_url":"https://github.com/powtac","followers_url":"https://api.github.com/users/powtac/followers","following_url":"https://api.github.com/users/powtac/following{/other_user}","gists_url":"https://api.github.com/users/powtac/gists{/gist_id}","starred_url":"https://api.github.com/users/powtac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powtac/subscriptions","organizations_url":"https://api.github.com/users/powtac/orgs","repos_url":"https://api.github.com/users/powtac/repos","events_url":"https://api.github.com/users/powtac/events{/privacy}","received_events_url":"https://api.github.com/users/powtac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-21T13:42:58Z","updated_at":"2016-03-21T13:42:58Z","closed_at":null,"body":"[The documentation for the searchBox widget](https://community.algolia.com/instantsearch.js/documentation/#searchbox) says:\r\n\r\n![unbenannt](https://cloud.githubusercontent.com/assets/36167/13920180/02668938-ef72-11e5-93bb-65a1ddfafbfd.PNG)\r\n\r\nBut how exactly must it be implemented? Does `queryHook` expect a (debounced) return? If so, what? object, function, bool? \r\n\r\nCalling a [debounce/deferr](https://code.openhub.net/file?fid=B6-cenRVoJ7qDbRegFtkguIsHY0&cid=uXtUw5YhiiU&s=&fp=305271&mp&projSelected=true#L0) function inside queryHook seems not to work.\r\n\r\n```\r\n\tqueryHook:function(query, search) {\r\n\t\t$.debounce(search(query), 1000);\r\n\t\treturn false; // ? \r\n\t}\r\n```"}}