{"action":"opened","number":122,"pull_request":{"url":"https://api.github.com/repos/opentrials/api/pulls/122","id":93729286,"html_url":"https://github.com/opentrials/api/pull/122","diff_url":"https://github.com/opentrials/api/pull/122.diff","patch_url":"https://github.com/opentrials/api/pull/122.patch","issue_url":"https://api.github.com/repos/opentrials/api/issues/122","number":122,"state":"open","locked":false,"title":"Fix FDA search bug on documents with empty pages","user":{"login":"vitorbaptista","id":76945,"avatar_url":"https://avatars.githubusercontent.com/u/76945?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorbaptista","html_url":"https://github.com/vitorbaptista","followers_url":"https://api.github.com/users/vitorbaptista/followers","following_url":"https://api.github.com/users/vitorbaptista/following{/other_user}","gists_url":"https://api.github.com/users/vitorbaptista/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorbaptista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorbaptista/subscriptions","organizations_url":"https://api.github.com/users/vitorbaptista/orgs","repos_url":"https://api.github.com/users/vitorbaptista/repos","events_url":"https://api.github.com/users/vitorbaptista/events{/privacy}","received_events_url":"https://api.github.com/users/vitorbaptista/received_events","type":"User","site_admin":false},"body":"When a document has an empty page (i.e. `\"\"`), ElasticSearch doesn't return the `highlights` attribute. In that case, we need to use the text from the page's `_source` instead.","created_at":"2016-11-15T09:31:57Z","updated_at":"2016-11-15T09:31:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"georgiana-b","id":8862002,"avatar_url":"https://avatars.githubusercontent.com/u/8862002?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiana-b","html_url":"https://github.com/georgiana-b","followers_url":"https://api.github.com/users/georgiana-b/followers","following_url":"https://api.github.com/users/georgiana-b/following{/other_user}","gists_url":"https://api.github.com/users/georgiana-b/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiana-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiana-b/subscriptions","organizations_url":"https://api.github.com/users/georgiana-b/orgs","repos_url":"https://api.github.com/users/georgiana-b/repos","events_url":"https://api.github.com/users/georgiana-b/events{/privacy}","received_events_url":"https://api.github.com/users/georgiana-b/received_events","type":"User","site_admin":false},"assignees":[{"login":"georgiana-b","id":8862002,"avatar_url":"https://avatars.githubusercontent.com/u/8862002?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiana-b","html_url":"https://github.com/georgiana-b","followers_url":"https://api.github.com/users/georgiana-b/followers","following_url":"https://api.github.com/users/georgiana-b/following{/other_user}","gists_url":"https://api.github.com/users/georgiana-b/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiana-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiana-b/subscriptions","organizations_url":"https://api.github.com/users/georgiana-b/orgs","repos_url":"https://api.github.com/users/georgiana-b/repos","events_url":"https://api.github.com/users/georgiana-b/events{/privacy}","received_events_url":"https://api.github.com/users/georgiana-b/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/opentrials/api/pulls/122/commits","review_comments_url":"https://api.github.com/repos/opentrials/api/pulls/122/comments","review_comment_url":"https://api.github.com/repos/opentrials/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opentrials/api/issues/122/comments","statuses_url":"https://api.github.com/repos/opentrials/api/statuses/9f6d0a2868cf7ed033de9ca4be57acad0579d132","head":{"label":"opentrials:feature/501-add-fda-search-ui","ref":"feature/501-add-fda-search-ui","sha":"9f6d0a2868cf7ed033de9ca4be57acad0579d132","user":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"repo":{"id":50277110,"name":"api","full_name":"opentrials/api","owner":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentrials/api","description":"The OpenTrials API service + database schema definition.","fork":false,"url":"https://api.github.com/repos/opentrials/api","forks_url":"https://api.github.com/repos/opentrials/api/forks","keys_url":"https://api.github.com/repos/opentrials/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentrials/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentrials/api/teams","hooks_url":"https://api.github.com/repos/opentrials/api/hooks","issue_events_url":"https://api.github.com/repos/opentrials/api/issues/events{/number}","events_url":"https://api.github.com/repos/opentrials/api/events","assignees_url":"https://api.github.com/repos/opentrials/api/assignees{/user}","branches_url":"https://api.github.com/repos/opentrials/api/branches{/branch}","tags_url":"https://api.github.com/repos/opentrials/api/tags","blobs_url":"https://api.github.com/repos/opentrials/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentrials/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentrials/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentrials/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentrials/api/statuses/{sha}","languages_url":"https://api.github.com/repos/opentrials/api/languages","stargazers_url":"https://api.github.com/repos/opentrials/api/stargazers","contributors_url":"https://api.github.com/repos/opentrials/api/contributors","subscribers_url":"https://api.github.com/repos/opentrials/api/subscribers","subscription_url":"https://api.github.com/repos/opentrials/api/subscription","commits_url":"https://api.github.com/repos/opentrials/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentrials/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentrials/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentrials/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentrials/api/contents/{+path}","compare_url":"https://api.github.com/repos/opentrials/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentrials/api/merges","archive_url":"https://api.github.com/repos/opentrials/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentrials/api/downloads","issues_url":"https://api.github.com/repos/opentrials/api/issues{/number}","pulls_url":"https://api.github.com/repos/opentrials/api/pulls{/number}","milestones_url":"https://api.github.com/repos/opentrials/api/milestones{/number}","notifications_url":"https://api.github.com/repos/opentrials/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentrials/api/labels{/name}","releases_url":"https://api.github.com/repos/opentrials/api/releases{/id}","deployments_url":"https://api.github.com/repos/opentrials/api/deployments","created_at":"2016-01-24T07:24:21Z","updated_at":"2016-11-06T00:44:03Z","pushed_at":"2016-11-15T09:27:39Z","git_url":"git://github.com/opentrials/api.git","ssh_url":"git@github.com:opentrials/api.git","clone_url":"https://github.com/opentrials/api.git","svn_url":"https://github.com/opentrials/api","homepage":"http://api.opentrials.net/","size":2950,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"opentrials:master","ref":"master","sha":"4d6a08f2a699766685f1aa1044ad5bf466a0b658","user":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"repo":{"id":50277110,"name":"api","full_name":"opentrials/api","owner":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentrials/api","description":"The OpenTrials API service + database schema definition.","fork":false,"url":"https://api.github.com/repos/opentrials/api","forks_url":"https://api.github.com/repos/opentrials/api/forks","keys_url":"https://api.github.com/repos/opentrials/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentrials/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentrials/api/teams","hooks_url":"https://api.github.com/repos/opentrials/api/hooks","issue_events_url":"https://api.github.com/repos/opentrials/api/issues/events{/number}","events_url":"https://api.github.com/repos/opentrials/api/events","assignees_url":"https://api.github.com/repos/opentrials/api/assignees{/user}","branches_url":"https://api.github.com/repos/opentrials/api/branches{/branch}","tags_url":"https://api.github.com/repos/opentrials/api/tags","blobs_url":"https://api.github.com/repos/opentrials/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentrials/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentrials/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentrials/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentrials/api/statuses/{sha}","languages_url":"https://api.github.com/repos/opentrials/api/languages","stargazers_url":"https://api.github.com/repos/opentrials/api/stargazers","contributors_url":"https://api.github.com/repos/opentrials/api/contributors","subscribers_url":"https://api.github.com/repos/opentrials/api/subscribers","subscription_url":"https://api.github.com/repos/opentrials/api/subscription","commits_url":"https://api.github.com/repos/opentrials/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentrials/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentrials/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentrials/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentrials/api/contents/{+path}","compare_url":"https://api.github.com/repos/opentrials/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentrials/api/merges","archive_url":"https://api.github.com/repos/opentrials/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentrials/api/downloads","issues_url":"https://api.github.com/repos/opentrials/api/issues{/number}","pulls_url":"https://api.github.com/repos/opentrials/api/pulls{/number}","milestones_url":"https://api.github.com/repos/opentrials/api/milestones{/number}","notifications_url":"https://api.github.com/repos/opentrials/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentrials/api/labels{/name}","releases_url":"https://api.github.com/repos/opentrials/api/releases{/id}","deployments_url":"https://api.github.com/repos/opentrials/api/deployments","created_at":"2016-01-24T07:24:21Z","updated_at":"2016-11-06T00:44:03Z","pushed_at":"2016-11-15T09:27:39Z","git_url":"git://github.com/opentrials/api.git","ssh_url":"git@github.com:opentrials/api.git","clone_url":"https://github.com/opentrials/api.git","svn_url":"https://github.com/opentrials/api","homepage":"http://api.opentrials.net/","size":2950,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opentrials/api/pulls/122"},"html":{"href":"https://github.com/opentrials/api/pull/122"},"issue":{"href":"https://api.github.com/repos/opentrials/api/issues/122"},"comments":{"href":"https://api.github.com/repos/opentrials/api/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/opentrials/api/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/opentrials/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opentrials/api/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/opentrials/api/statuses/9f6d0a2868cf7ed033de9ca4be57acad0579d132"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":57,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"vitorbaptista"}}