{"action":"created","issue":{"url":"https://api.github.com/repos/hexpm/hex_web/issues/163","labels_url":"https://api.github.com/repos/hexpm/hex_web/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/hexpm/hex_web/issues/163/comments","events_url":"https://api.github.com/repos/hexpm/hex_web/issues/163/events","html_url":"https://github.com/hexpm/hex_web/issues/163","id":110418463,"number":163,"title":"Add autocomplete to search box","user":{"login":"jcspencer","id":860934,"avatar_url":"https://avatars.githubusercontent.com/u/860934?v=3","gravatar_id":"","url":"https://api.github.com/users/jcspencer","html_url":"https://github.com/jcspencer","followers_url":"https://api.github.com/users/jcspencer/followers","following_url":"https://api.github.com/users/jcspencer/following{/other_user}","gists_url":"https://api.github.com/users/jcspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcspencer/subscriptions","organizations_url":"https://api.github.com/users/jcspencer/orgs","repos_url":"https://api.github.com/users/jcspencer/repos","events_url":"https://api.github.com/users/jcspencer/events{/privacy}","received_events_url":"https://api.github.com/users/jcspencer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T10:27:51Z","updated_at":"2015-10-08T10:29:22Z","closed_at":null,"body":"I think it would be really useful to autocomplete search queries in the search bar. This could be done simply with a query like this:\r\n\r\n```elixir\r\nfrom(p in HexWeb.Package,\r\n        select: p.name)\r\n|> search(search)\r\n|> HexWeb.Repo.all\r\n```\r\n\r\nThis takes (on average) ~1-2ms per query in my test environment."},"comment":{"url":"https://api.github.com/repos/hexpm/hex_web/issues/comments/146489296","html_url":"https://github.com/hexpm/hex_web/issues/163#issuecomment-146489296","issue_url":"https://api.github.com/repos/hexpm/hex_web/issues/163","id":146489296,"user":{"login":"jcspencer","id":860934,"avatar_url":"https://avatars.githubusercontent.com/u/860934?v=3","gravatar_id":"","url":"https://api.github.com/users/jcspencer","html_url":"https://github.com/jcspencer","followers_url":"https://api.github.com/users/jcspencer/followers","following_url":"https://api.github.com/users/jcspencer/following{/other_user}","gists_url":"https://api.github.com/users/jcspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcspencer/subscriptions","organizations_url":"https://api.github.com/users/jcspencer/orgs","repos_url":"https://api.github.com/users/jcspencer/repos","events_url":"https://api.github.com/users/jcspencer/events{/privacy}","received_events_url":"https://api.github.com/users/jcspencer/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T10:29:22Z","updated_at":"2015-10-08T10:29:22Z","body":"It would also be a good idea to limit the number of responses, as it's overkill to send every single match"}}