From 60cdbfd5c2290cbe61c234ad71fcc6b567d283c8 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 25 Jan 2020 11:47:07 +0100 Subject: [PATCH] show all resource types in facets --- app/models/doi.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/doi.rb b/app/models/doi.rb index 74d8a4c56..0f45691e2 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -472,8 +472,8 @@ def as_indexed_json(options={}) def self.query_aggregations { - resource_types: { terms: { field: 'types.resourceTypeGeneral', size: 15, min_doc_count: 1 } }, - states: { terms: { field: 'aasm_state', size: 15, min_doc_count: 1 } }, + resource_types: { terms: { field: 'types.resourceTypeGeneral', size: 20, min_doc_count: 1 } }, + states: { terms: { field: 'aasm_state', size: 3, min_doc_count: 1 } }, years: { date_histogram: { field: 'publication_year', interval: 'year', min_doc_count: 1 } }, created: { date_histogram: { field: 'created', interval: 'year', min_doc_count: 1 } }, registered: { date_histogram: { field: 'registered', interval: 'year', min_doc_count: 1 } },