{"action":"created","issue":{"url":"https://api.github.com/repos/twitter/typeahead.js/issues/821","labels_url":"https://api.github.com/repos/twitter/typeahead.js/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/twitter/typeahead.js/issues/821/comments","events_url":"https://api.github.com/repos/twitter/typeahead.js/issues/821/events","html_url":"https://github.com/twitter/typeahead.js/issues/821","id":31194706,"number":821,"title":"Highlight when search term is tokenized into individual words","user":{"login":"BrentWheeldon","id":764206,"avatar_url":"https://avatars.githubusercontent.com/u/764206?v=3","gravatar_id":"","url":"https://api.github.com/users/BrentWheeldon","html_url":"https://github.com/BrentWheeldon","followers_url":"https://api.github.com/users/BrentWheeldon/followers","following_url":"https://api.github.com/users/BrentWheeldon/following{/other_user}","gists_url":"https://api.github.com/users/BrentWheeldon/gists{/gist_id}","starred_url":"https://api.github.com/users/BrentWheeldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrentWheeldon/subscriptions","organizations_url":"https://api.github.com/users/BrentWheeldon/orgs","repos_url":"https://api.github.com/users/BrentWheeldon/repos","events_url":"https://api.github.com/users/BrentWheeldon/events{/privacy}","received_events_url":"https://api.github.com/users/BrentWheeldon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/twitter/typeahead.js/milestones/11","labels_url":"https://api.github.com/repos/twitter/typeahead.js/milestones/11/labels","id":562902,"number":11,"title":"v1.0.0","description":"","creator":{"login":"jharding","id":314351,"avatar_url":"https://avatars.githubusercontent.com/u/314351?v=3","gravatar_id":"","url":"https://api.github.com/users/jharding","html_url":"https://github.com/jharding","followers_url":"https://api.github.com/users/jharding/followers","following_url":"https://api.github.com/users/jharding/following{/other_user}","gists_url":"https://api.github.com/users/jharding/gists{/gist_id}","starred_url":"https://api.github.com/users/jharding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharding/subscriptions","organizations_url":"https://api.github.com/users/jharding/orgs","repos_url":"https://api.github.com/users/jharding/repos","events_url":"https://api.github.com/users/jharding/events{/privacy}","received_events_url":"https://api.github.com/users/jharding/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":1,"state":"open","created_at":"2014-02-08T06:21:30Z","updated_at":"2015-02-09T08:50:58Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-04-09T21:09:33Z","updated_at":"2015-02-10T18:03:14Z","closed_at":null,"body":"Hi there,\r\n\r\nWe parse our search query into individual terms, which means the builtin highlighting functionality doesn't highlight some results. For example, if we search for \"John Boston\", and a result of \"John Smith Boston\" does have any highlighting applied. It seems that the `highlight` function supports `o.pattern` being an array, but I can't work out how to split the query on space. Is there a way of customizing the pattern which is passed into the `highlight` function?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/twitter/typeahead.js/issues/comments/73749621","html_url":"https://github.com/twitter/typeahead.js/issues/821#issuecomment-73749621","issue_url":"https://api.github.com/repos/twitter/typeahead.js/issues/821","id":73749621,"user":{"login":"devourment77","id":1877193,"avatar_url":"https://avatars.githubusercontent.com/u/1877193?v=3","gravatar_id":"","url":"https://api.github.com/users/devourment77","html_url":"https://github.com/devourment77","followers_url":"https://api.github.com/users/devourment77/followers","following_url":"https://api.github.com/users/devourment77/following{/other_user}","gists_url":"https://api.github.com/users/devourment77/gists{/gist_id}","starred_url":"https://api.github.com/users/devourment77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devourment77/subscriptions","organizations_url":"https://api.github.com/users/devourment77/orgs","repos_url":"https://api.github.com/users/devourment77/repos","events_url":"https://api.github.com/users/devourment77/events{/privacy}","received_events_url":"https://api.github.com/users/devourment77/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T18:03:14Z","updated_at":"2015-02-10T18:03:14Z","body":"This would be a great feature.  Example: \"hotels with spa\", when typing \"hotels\" highlighting works, but when we type \"hotels spa\", neither hotel or spa are highlighted (but the correct suggestion is shown).\r\n\r\nThanks,\r\nBrandon\r\n\r\n"}}