From 0b45717e99954732fa33badd6414a73e63f93bea Mon Sep 17 00:00:00 2001 From: nruest Date: Mon, 16 Oct 2017 08:51:06 -0400 Subject: [PATCH] Limit all facets to help out with performance. --- .../warclight/templates/catalog_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/generators/warclight/templates/catalog_controller.rb b/lib/generators/warclight/templates/catalog_controller.rb index b278a38..949e014 100644 --- a/lib/generators/warclight/templates/catalog_controller.rb +++ b/lib/generators/warclight/templates/catalog_controller.rb @@ -48,16 +48,16 @@ class CatalogController < ApplicationController # :index_range can be an array or range of prefixes that will be used to # create the navigation (note: It is case sensitive when searching values) - config.add_facet_field 'content_type_norm', label: 'General Content Type', collapse: false - config.add_facet_field 'crawl_year', label: 'Crawl Year', collapse: false + config.add_facet_field 'content_type_norm', label: 'General Content Type', collapse: false, limit: true + config.add_facet_field 'crawl_year', label: 'Crawl Year', collapse: false, limit: true config.add_facet_field 'public_suffix', label: 'Public Suffix', collapse: false, limit: true config.add_facet_field 'domain', label: 'Domain', limit: true config.add_facet_field 'links_domains', label: 'Links Domains', limit: true config.add_facet_field 'content_language', label: 'Content Language', limit: true config.add_facet_field 'resourcename_s', label: 'Resource Name', limit: true - config.add_facet_field 'institution', label: 'Institution' - config.add_facet_field 'collection_name', label: 'Collection Name' - config.add_facet_field 'collection_number', label: 'Collection Number' + config.add_facet_field 'institution', label: 'Institution', limit: true + config.add_facet_field 'collection_name', label: 'Collection Name', limit: true + config.add_facet_field 'collection_number', label: 'Collection Number', limit: true # Have BL send all facet field names to Solr, which has been the default # previously. Simply remove these lines if you'd rather use Solr request