From 6b6091aafec2384f58e72e7f47ba5a6848a71d4f Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 16 Oct 2018 19:22:32 +0200 Subject: [PATCH] show resource-type facets for dois --- app/models/doi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/doi.rb b/app/models/doi.rb index e2cbafd86..e61df884a 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -200,7 +200,7 @@ def as_indexed_json(options={}) def self.query_aggregations { - resource_types: { terms: { field: 'resource_type_general', size: 15, min_doc_count: 1 } }, + resource_types: { terms: { field: 'resource_type_id', size: 15, min_doc_count: 1 } }, states: { terms: { field: 'aasm_state', size: 10, min_doc_count: 1 } }, years: { date_histogram: { field: 'published', interval: 'year', min_doc_count: 1 } }, created: { date_histogram: { field: 'created', interval: 'year', min_doc_count: 1 } },