Skip to content

Commit

Permalink
fix citation_year facet
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 20, 2021
1 parent 400a970 commit 0e03bcb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def index
end
citation_years =
if total.positive?
facet_by_year(response.response.aggregations.citation_years.buckets)
facet_annual(response.response.aggregations.citation_years.buckets)
end
prefixes =
if total.positive?
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/old_events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def index
end
citation_years =
if total > 0
facet_by_year(response.aggregations.citation_years.buckets)
facet_annual(response.aggregations.citation_years.buckets)
end
citation_types =
if total > 0
Expand Down
1 change: 0 additions & 1 deletion app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ def self.query_aggregations
},
min_doc_count: 1,
},
aggs: { bucket_truncate: { bucket_sort: { size: 10 } } },
},
registrants: {
terms: { field: "registrant_id", size: 10, min_doc_count: 1 },
Expand Down

0 comments on commit 0e03bcb

Please sign in to comment.