Skip to content

Commit

Permalink
fixed elasticsearch syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 21, 2019
1 parent e6f3767 commit e17a9e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down Expand Up @@ -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"
}
}

Expand Down Expand Up @@ -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"
}
}

Expand Down

0 comments on commit e17a9e6

Please sign in to comment.