From d4970e8564c8d85d85c8f77c71728358cf7ee720 Mon Sep 17 00:00:00 2001 From: Sandeep Kanabar Date: Thu, 26 Jul 2018 22:59:17 +0530 Subject: [PATCH] Docs: Correcting a typo in tophits (#32359) --- .../reference/aggregations/metrics/tophits-aggregation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc b/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc index dc3222a5f371e..5eeb3a4605a40 100644 --- a/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc +++ b/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc @@ -172,7 +172,7 @@ In the example below we search across crawled webpages. For each webpage we stor belong to. By defining a `terms` aggregator on the `domain` field we group the result set of webpages by domain. The `top_hits` aggregator is then defined as sub-aggregator, so that the top matching hits are collected per bucket. -Also a `max` aggregator is defined which is used by the `terms` aggregator's order feature the return the buckets by +Also a `max` aggregator is defined which is used by the `terms` aggregator's order feature to return the buckets by relevancy order of the most relevant document in a bucket. [source,js]