Skip to content

Commit

Permalink
increase facet_count for resource_type to cover the resource_type_gen…
Browse files Browse the repository at this point in the history
…eral new in schema 4.4
  • Loading branch information
Martin Fenner committed Apr 1, 2021
1 parent bb2c0f6 commit 54324bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 54324bf

Please sign in to comment.