error in code

The top-tags and terms were reversed.
This commit is contained in:
smayzak 2014-07-25 13:38:42 -07:00 committed by Clinton Gormley
parent d75aabc5aa
commit 8449128032
1 changed files with 3 additions and 3 deletions

View File

@ -36,8 +36,8 @@ only the title field is being included in the source.
--------------------------------------------------
{
"aggs": {
"terms": {
"top-tags": {
"top-tags": {
"terms": {
"field": "tags",
"size": 3
},
@ -195,4 +195,4 @@ relevancy order of the most relevant document in a bucket.
At the moment the `max` (or `min`) aggregator is needed to make sure the buckets from the `terms` aggregator are
ordered according to the score of the most relevant webpage per domain. The `top_hits` aggregator isn't a metric aggregator
and therefor can't be used in the `order` option of the `terms` aggregator.
and therefor can't be used in the `order` option of the `terms` aggregator.