{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/784","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/784/comments","events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/784/events","html_url":"https://github.com/algolia/instantsearch.js/issues/784","id":126840378,"number":784,"title":"optionalWords=querystring not doable","user":{"login":"maxiloc","id":1689007,"avatar_url":"https://avatars.githubusercontent.com/u/1689007?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiloc","html_url":"https://github.com/maxiloc","followers_url":"https://api.github.com/users/maxiloc/followers","following_url":"https://api.github.com/users/maxiloc/following{/other_user}","gists_url":"https://api.github.com/users/maxiloc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiloc/subscriptions","organizations_url":"https://api.github.com/users/maxiloc/orgs","repos_url":"https://api.github.com/users/maxiloc/repos","events_url":"https://api.github.com/users/maxiloc/events{/privacy}","received_events_url":"https://api.github.com/users/maxiloc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-15T09:55:45Z","updated_at":"2016-01-15T11:03:33Z","closed_at":null,"body":"We don't have a way to do optionnalWords=querystring for each query.\r\nProbably an option in searchbox should do it"},"comment":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/comments/171934128","html_url":"https://github.com/algolia/instantsearch.js/issues/784#issuecomment-171934128","issue_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/784","id":171934128,"user":{"login":"bobylito","id":393765,"avatar_url":"https://avatars.githubusercontent.com/u/393765?v=3","gravatar_id":"","url":"https://api.github.com/users/bobylito","html_url":"https://github.com/bobylito","followers_url":"https://api.github.com/users/bobylito/followers","following_url":"https://api.github.com/users/bobylito/following{/other_user}","gists_url":"https://api.github.com/users/bobylito/gists{/gist_id}","starred_url":"https://api.github.com/users/bobylito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobylito/subscriptions","organizations_url":"https://api.github.com/users/bobylito/orgs","repos_url":"https://api.github.com/users/bobylito/repos","events_url":"https://api.github.com/users/bobylito/events{/privacy}","received_events_url":"https://api.github.com/users/bobylito/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T11:03:33Z","updated_at":"2016-01-15T11:03:33Z","body":"Putting that as an option in the search box will work. The only problem that can happen is with several widget that have the ability to set the query.\r\n\r\nIf we have that in instantsearch core, then it needs to intercept the query and then change the parameters. What if the helper could be prevented to send the search query when the `search` event is triggered https://github.com/algolia/algoliasearch-helper-js/blob/master/src/algoliasearch.helper.js#L723\r\nThis would be like : \r\n - searchbox sets query and do the search\r\n - search event is triggered and interupted if the value of the query is not the optionnalWords\r\n - state is modified with the optionnalWords set to the query value\r\n - trigger the search again\r\n\r\nFirst solution is way simpler :P"}}