Skip to content

Commit

Permalink
Facets limited to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sarala committed Apr 24, 2020
1 parent abdac33 commit c5e67b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -561,20 +561,20 @@ def self.query_aggregations
aggs: { bucket_truncate: { bucket_sort: { size: 10 } } } },
registered: { date_histogram: { field: 'registered', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 },
aggs: { bucket_truncate: { bucket_sort: { size: 10 } } } },
providers: { terms: { field: 'provider_id_and_name', size: 15, min_doc_count: 1} },
clients: { terms: { field: 'client_id_and_name', size: 15, min_doc_count: 1 } },
affiliations: { terms: { field: 'affiliation_id_and_name', size: 15, min_doc_count: 1 } },
prefixes: { terms: { field: 'prefix', size: 15, min_doc_count: 1 } },
schema_versions: { terms: { field: 'schema_version', size: 15, min_doc_count: 1 } },
link_checks_status: { terms: { field: 'landing_page.status', size: 15, min_doc_count: 1 } },
providers: { terms: { field: 'provider_id_and_name', size: 10, min_doc_count: 1} },
clients: { terms: { field: 'client_id_and_name', size: 10, min_doc_count: 1 } },
affiliations: { terms: { field: 'affiliation_id_and_name', size: 10, min_doc_count: 1 } },
prefixes: { terms: { field: 'prefix', size: 10, min_doc_count: 1 } },
schema_versions: { terms: { field: 'schema_version', size: 10, min_doc_count: 1 } },
link_checks_status: { terms: { field: 'landing_page.status', size: 10, min_doc_count: 1 } },
# link_checks_has_schema_org: { terms: { field: 'landing_page.hasSchemaOrg', size: 2, min_doc_count: 1 } },
# link_checks_schema_org_id: { value_count: { field: "landing_page.schemaOrgId" } },
# link_checks_dc_identifier: { value_count: { field: "landing_page.dcIdentifier" } },
# link_checks_citation_doi: { value_count: { field: "landing_page.citationDoi" } },
# links_checked: { value_count: { field: "landing_page.checked" } },
# sources: { terms: { field: 'source', size: 15, min_doc_count: 1 } },
# subjects: { terms: { field: 'subjects.subject', size: 15, min_doc_count: 1 } },
certificates: { terms: { field: 'client.certificate', size: 15, min_doc_count: 1 } },
certificates: { terms: { field: 'client.certificate', size: 10, min_doc_count: 1 } },
views: {
date_histogram: { field: 'publication_year', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 },
aggs: {
Expand Down

0 comments on commit c5e67b7

Please sign in to comment.