Skip to content

Commit

Permalink
show resource-type facets for dois
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 16, 2018
1 parent bb0000e commit 6b6091a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
Expand Down

0 comments on commit 6b6091a

Please sign in to comment.