Skip to content

Commit

Permalink
show 2020 aggregate counts. datacite/bracco#281
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 23, 2020
1 parent 469ff6b commit f49a632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def self.query_fields
def self.query_aggregations
{
years: { date_histogram: { field: 'created', interval: 'year', min_doc_count: 1 } },
cumulative_years: { terms: { field: 'cumulative_years', min_doc_count: 1, order: { _count: "asc" } } },
cumulative_years: { terms: { field: 'cumulative_years', size: 15, min_doc_count: 1, order: { _count: "asc" } } },
providers: { terms: { field: 'provider_id', size: 15, min_doc_count: 1 } },
software: { terms: { field: 'software.keyword', size: 15, min_doc_count: 1 } },
client_types: { terms: { field: 'client_type', size: 15, min_doc_count: 1 } },
Expand Down
2 changes: 1 addition & 1 deletion app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def self.query_fields
def self.query_aggregations
{
years: { date_histogram: { field: 'created', interval: 'year', min_doc_count: 1 } },
cumulative_years: { terms: { field: 'cumulative_years', min_doc_count: 1, order: { _count: "asc" } } },
cumulative_years: { terms: { field: 'cumulative_years', size: 15, min_doc_count: 1, order: { _count: "asc" } } },
regions: { terms: { field: 'region', size: 10, min_doc_count: 1 } },
member_types: { terms: { field: 'member_type', size: 10, min_doc_count: 1 } },
organization_types: { terms: { field: 'organization_type', size: 10, min_doc_count: 1 } },
Expand Down

0 comments on commit f49a632

Please sign in to comment.