From 54324bf952de9ae43fa920f5eed4591e6be81c6a Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 1 Apr 2021 09:32:40 +0200 Subject: [PATCH] increase facet_count for resource_type to cover the resource_type_general new in schema 4.4 --- app/models/doi.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/doi.rb b/app/models/doi.rb index b0698909a..3c2e4b3cd 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -627,7 +627,8 @@ def self.gql_query_aggregations(facet_count: 10) def self.query_aggregations(disable_facets: false) if !disable_facets { - resource_types: { terms: { field: "resource_type_id_and_name", size: 16, min_doc_count: 1 } }, + # number of resourceTypeGeneral increased from 16 to 28 in schema 4.4 + resource_types: { terms: { field: "resource_type_id_and_name", size: 30, min_doc_count: 1 } }, states: { terms: { field: "aasm_state", size: 3, min_doc_count: 1 } }, published: { date_histogram: {