{"action":"created","issue":{"url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/issues/36","labels_url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/issues/36/comments","events_url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/issues/36/events","html_url":"https://github.com/Financial-Times/next-ft-api-client/pull/36","id":86156469,"number":36,"title":"Exclude search term ID from aggregations","user":{"login":"i-like-robots","id":271645,"avatar_url":"https://avatars.githubusercontent.com/u/271645?v=3","gravatar_id":"","url":"https://api.github.com/users/i-like-robots","html_url":"https://github.com/i-like-robots","followers_url":"https://api.github.com/users/i-like-robots/followers","following_url":"https://api.github.com/users/i-like-robots/following{/other_user}","gists_url":"https://api.github.com/users/i-like-robots/gists{/gist_id}","starred_url":"https://api.github.com/users/i-like-robots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i-like-robots/subscriptions","organizations_url":"https://api.github.com/users/i-like-robots/orgs","repos_url":"https://api.github.com/users/i-like-robots/repos","events_url":"https://api.github.com/users/i-like-robots/events{/privacy}","received_events_url":"https://api.github.com/users/i-like-robots/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T12:27:58Z","updated_at":"2015-06-08T12:29:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/pulls/36","html_url":"https://github.com/Financial-Times/next-ft-api-client/pull/36","diff_url":"https://github.com/Financial-Times/next-ft-api-client/pull/36.diff","patch_url":"https://github.com/Financial-Times/next-ft-api-client/pull/36.patch"},"body":"Fixes a bug whereby links in the related nav in Dobi are often to the same stream as the current page.\r\n\r\nThis was caused by the nested aggregation used to get the ID related its parent also returning both the searched ID and matched ID in alphabetical order.\r\n\r\nUsing the nested aggregation is a bit of a hack anyway and 'correct' way to mitigate this would be to use the `exclude` parameter, however this does not scale across multiple nested queries.\r\n\r\nDobi PR to follow."},"comment":{"url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/issues/comments/109977436","html_url":"https://github.com/Financial-Times/next-ft-api-client/pull/36#issuecomment-109977436","issue_url":"https://api.github.com/repos/Financial-Times/next-ft-api-client/issues/36","id":109977436,"user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T12:29:57Z","updated_at":"2015-06-08T12:29:57Z","body":":+1: "}}