diff --git a/app/models/client.rb b/app/models/client.rb index cd9ff0a4a..f48e5c290 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -253,12 +253,12 @@ def self.query_aggregations { years: { date_histogram: { field: 'created', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 }, aggs: { bucket_truncate: { bucket_sort: { size: 10 } } } }, - 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 } }, - repository_types: { terms: { field: 'repository_type', size: 15, min_doc_count: 1 } }, - certificates: { terms: { field: 'certificate', size: 15, min_doc_count: 1 } } + cumulative_years: { terms: { field: 'cumulative_years', size: 10, min_doc_count: 1, order: { _count: "asc" } } }, + providers: { terms: { field: 'provider_id', size: 10, min_doc_count: 1 } }, + software: { terms: { field: 'software.keyword', size: 10, min_doc_count: 1 } }, + client_types: { terms: { field: 'client_type', size: 10, min_doc_count: 1 } }, + repository_types: { terms: { field: 'repository_type', size: 10, min_doc_count: 1 } }, + certificates: { terms: { field: 'certificate', size: 10, min_doc_count: 1 } } } end diff --git a/app/models/prefix.rb b/app/models/prefix.rb index bdc7b9411..932823f00 100644 --- a/app/models/prefix.rb +++ b/app/models/prefix.rb @@ -60,8 +60,8 @@ def self.query_aggregations states: { terms: { field: 'state', size: 3, min_doc_count: 1 } }, years: { date_histogram: { field: 'created_at', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 }, aggs: { bucket_truncate: { bucket_sort: { size: 10 } } } }, - providers: { terms: { field: 'provider_ids', size: 15, min_doc_count: 1 } }, - clients: { terms: { field: 'client_ids', size: 15, min_doc_count: 1 } }, + providers: { terms: { field: 'provider_ids', size: 10, min_doc_count: 1 } }, + clients: { terms: { field: 'client_ids', size: 10, min_doc_count: 1 } }, } end