From e17a9e60d6611a6e1b44ded349273a0911d42011 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 21 Nov 2019 07:42:32 +0100 Subject: [PATCH] fixed elasticsearch syntax --- app/models/event.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/event.rb b/app/models/event.rb index 4b93b0e10..cab438262 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -207,7 +207,7 @@ def self.query_aggregations(doi=nil) sum_year_distribution = { sum_bucket: { - buckets_path: "years > total_by_year" + buckets_path: "years>total_by_year" } } @@ -238,7 +238,7 @@ def self.query_aggregations(doi=nil) def self.metrics_aggregations(doi = nil) sum_distribution = { sum_bucket: { - buckets_path: "year_months > total_by_year_month" + buckets_path: "year_months>total_by_year_month" } } @@ -278,7 +278,7 @@ def self.citations_aggregations(doi) sum_year_distribution = { sum_bucket: { - buckets_path: "years > total_by_year" + buckets_path: "years>total_by_year" } }