Commit 92ff3504 authored by Mark Harding's avatar Mark Harding
Browse files

(fix): trending hashtags should use global counts - fixes #2388

parent 0819e2e2
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -45,8 +45,8 @@ class Repository
                    'must' => [
                    'must' => [
                        [
                        [
                            'range' => [
                            'range' => [
                                'votes:up:24h:synced' => [
                                '@timestamp' => [
                                    'gte' => $opts['from'],
                                    'gte' => $opts['from'] * 1000,
                                ],
                                ],
                            ],
                            ],
                        ],
                        ],
@@ -81,7 +81,7 @@ class Repository
                    'aggs' => [
                    'aggs' => [
                        'counts' => [
                        'counts' => [
                            'max' => [
                            'max' => [
                                'field' => 'votes:up:24h',
                                'field' => 'votes:up',
                            ],
                            ],
                        ],
                        ],
                        'owners' => [
                        'owners' => [