diff --git a/app/models/client.rb b/app/models/client.rb index 8132fa4b1..34af0e89b 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -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 } }, diff --git a/app/models/provider.rb b/app/models/provider.rb index 7fb6477ab..664326b65 100644 --- a/app/models/provider.rb +++ b/app/models/provider.rb @@ -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 } },