{"action":"created","issue":{"url":"https://api.github.com/repos/hypothesis/h/issues/2184","labels_url":"https://api.github.com/repos/hypothesis/h/issues/2184/labels{/name}","comments_url":"https://api.github.com/repos/hypothesis/h/issues/2184/comments","events_url":"https://api.github.com/repos/hypothesis/h/issues/2184/events","html_url":"https://github.com/hypothesis/h/pull/2184","id":69483116,"number":2184,"title":"Overhaul URI analysis","user":{"login":"tilgovi","id":20818,"avatar_url":"https://avatars.githubusercontent.com/u/20818?v=3","gravatar_id":"","url":"https://api.github.com/users/tilgovi","html_url":"https://github.com/tilgovi","followers_url":"https://api.github.com/users/tilgovi/followers","following_url":"https://api.github.com/users/tilgovi/following{/other_user}","gists_url":"https://api.github.com/users/tilgovi/gists{/gist_id}","starred_url":"https://api.github.com/users/tilgovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilgovi/subscriptions","organizations_url":"https://api.github.com/users/tilgovi/orgs","repos_url":"https://api.github.com/users/tilgovi/repos","events_url":"https://api.github.com/users/tilgovi/events{/privacy}","received_events_url":"https://api.github.com/users/tilgovi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hypothesis/h/milestones/15","html_url":"https://github.com/hypothesis/h/milestones/05-04-2015","labels_url":"https://api.github.com/repos/hypothesis/h/milestones/15/labels","id":1087794,"number":15,"title":"05-04-2015","description":"","creator":{"login":"judell","id":46509,"avatar_url":"https://avatars.githubusercontent.com/u/46509?v=3","gravatar_id":"","url":"https://api.github.com/users/judell","html_url":"https://github.com/judell","followers_url":"https://api.github.com/users/judell/followers","following_url":"https://api.github.com/users/judell/following{/other_user}","gists_url":"https://api.github.com/users/judell/gists{/gist_id}","starred_url":"https://api.github.com/users/judell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judell/subscriptions","organizations_url":"https://api.github.com/users/judell/orgs","repos_url":"https://api.github.com/users/judell/repos","events_url":"https://api.github.com/users/judell/events{/privacy}","received_events_url":"https://api.github.com/users/judell/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":7,"state":"open","created_at":"2015-04-28T16:07:56Z","updated_at":"2015-05-04T17:56:11Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-04-20T00:58:13Z","updated_at":"2015-05-04T22:51:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hypothesis/h/pulls/2184","html_url":"https://github.com/hypothesis/h/pull/2184","diff_url":"https://github.com/hypothesis/h/pull/2184.diff","patch_url":"https://github.com/hypothesis/h/pull/2184.patch"},"body":"Change the analyzers for URI fields so that they are consistently\r\nindexing for three separate needs:\r\n\r\n- Match anything queries\r\n  This analysis will return matches to any piece of the URI by\r\n  splitting it on various separators and their URL-encoded equivalents.\r\n  When the user is typing free text without specifying a facet, this\r\n  will match any part of a URI.\r\n\r\n- Site / domain queries\r\n  When the user wants to see all the annotations for a particular site,\r\n  they will type only a domain. This analysis indexes only the domain\r\n  part and strips a leading 'www'.\r\n\r\n- Page queries\r\n  This is the \"standard\" application query for getting annotations\r\n  associated with a URI. It ignores the scheme, query string, fragment\r\n  and strips any trailing slash. It is expected that this will return\r\n  false positives for pages where the query string affects the content\r\n  but that is probably better than the alternative, given the many\r\n  non-content related uses of query strings (tracking variables, etc).\r\n\r\nThe new mappings are introduced under the \"uri.parts\" and \"site\" keys."},"comment":{"url":"https://api.github.com/repos/hypothesis/h/issues/comments/98879105","html_url":"https://github.com/hypothesis/h/pull/2184#issuecomment-98879105","issue_url":"https://api.github.com/repos/hypothesis/h/issues/2184","id":98879105,"user":{"login":"tilgovi","id":20818,"avatar_url":"https://avatars.githubusercontent.com/u/20818?v=3","gravatar_id":"","url":"https://api.github.com/users/tilgovi","html_url":"https://github.com/tilgovi","followers_url":"https://api.github.com/users/tilgovi/followers","following_url":"https://api.github.com/users/tilgovi/following{/other_user}","gists_url":"https://api.github.com/users/tilgovi/gists{/gist_id}","starred_url":"https://api.github.com/users/tilgovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilgovi/subscriptions","organizations_url":"https://api.github.com/users/tilgovi/orgs","repos_url":"https://api.github.com/users/tilgovi/repos","events_url":"https://api.github.com/users/tilgovi/events{/privacy}","received_events_url":"https://api.github.com/users/tilgovi/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T22:51:11Z","updated_at":"2015-05-04T22:51:11Z","body":"I pulled out the \"site\" query so I can add it back in a new PR with an update to the client-side query parser and I'll add a requirement for myself that I include documentation on the available facets. So for now this doesn't change the public interfaces it should just make things work as they were likely expected to all along."}}