Skip to content

Commit

Permalink
show all resource types in facets
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 25, 2020
1 parent 11406cb commit 60cdbfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
Expand Down

0 comments on commit 60cdbfd

Please sign in to comment.