GitHub PullRequestReviewCommentEvent at 2014-05-22 21:10:00
Repository: elasticsearch
Actor: jpountz
Payload: {"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/pulls/comments/12974606","id":12974606,"diff_hunk":"@@ -0,0 +1,142 @@\n+[[search-aggregations-bucket-top-hits-aggregation]]\n+=== Top hits Aggregation\n+\n+coming[1.3.0]\n+\n+The `top_hits` aggregator keeps track of the most relevant document being aggregated. This aggregator is intended to be\n+used as a sub aggregator, so that the top matching documents can be aggregated per bucket.\n+\n+The `top_hits` aggregator can effectively be used to group result sets by certain fields via a bucket aggregator.\n+One or more bucket aggregators determines by which properties a result set get sliced into.\n+\n+.Options:\n+* `size` - The maximum number of top matching hits to return per bucket. By default the top three matching hits are returned.\n+* `sort` - How the top matching hits should be sorted. By default the hits are sorted by the score of the main query.\n+\n+.Supported per hit features\n+\n+The top_hits aggregation returns regular search hits, because of this many per hit features can be supported:\n+* {ref}/search-request-highlighting.html[Highlighting]\n+* {ref}/search-request-explain.html[Explain]\n+* {ref}/search-request-named-queries-and-filters.html[Named filters and queries]\n+* {ref}/search-request-source-filtering.html[Source filtering]\n+* {ref}/search-request-script-fields.html[Script fields]\n+* {ref}/search-request-fielddata-fields.html[Fielddata fields]\n+* {ref}/search-request-version.html[Include versions]","path":"docs/reference/search/aggregations/bucket/tophits-aggregations.asciidoc","position":25,"original_position":25,"commit_id":"7f16277cb3b28f3096015da06d991d754351994d","original_commit_id":"7f16277cb3b28f3096015da06d991d754351994d","user":{"login":"jpountz","id":299848,"avatar_url":"https://avatars.githubusercontent.com/u/299848?","gravatar_id":"e0ad83ea7b832220d0a3231e529f4338","url":"https://api.github.com/users/jpountz","html_url":"https://github.com/jpountz","followers_url":"https://api.github.com/users/jpountz/followers","following_url":"https://api.github.com/users/jpountz/following{/other_user}","gists_url":"https://api.github.com/users/jpountz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpountz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpountz/subscriptions","organizations_url":"https://api.github.com/users/jpountz/orgs","repos_url":"https://api.github.com/users/jpountz/repos","events_url":"https://api.github.com/users/jpountz/events{/privacy}","received_events_url":"https://api.github.com/users/jpountz/received_events","type":"User","site_admin":false},"body":"nice :)","created_at":"2014-05-22T21:10:00Z","updated_at":"2014-05-22T21:10:00Z","html_url":"https://github.com/elasticsearch/elasticsearch/pull/6124#discussion_r12974606","pull_request_url":"https://api.github.com/repos/elasticsearch/elasticsearch/pulls/6124","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch/elasticsearch/pulls/comments/12974606"},"html":{"href":"https://github.com/elasticsearch/elasticsearch/pull/6124#discussion_r12974606"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch/elasticsearch/pulls/6124"}}}}