Sha256: 2f985461f68ff95df6aa5051ddc487fb2e3083262d2d8d3000cc75df686ec329

Contents?: true

Size: 752 Bytes

Versions: 53

Compression:

Stored size: 752 Bytes

Contents

##
# Simplified catalog controller
class CatalogController < ApplicationController
  include Blacklight::Catalog

  configure_blacklight do |config|
    ## Default parameters to send to solr for all search-like requests. See also SolrHelper#solr_search_params
    config.default_solr_params = {
      qt: 'search',
      rows: 10,
      fl: '*'
    }

    config.document_solr_path = 'get'
    config.document_unique_id_param = 'ids'

    # solr field configuration for search results/index views
    config.index.title_field = 'full_title_tesim'

    config.add_search_field 'all_fields', label: 'Everything'

    config.add_sort_field 'relevance', sort: 'score desc', label: 'Relevance'

    config.add_field_configuration_to_solr_request!
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
blacklight-spotlight-1.1.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-1.0.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-1.0.0.alpha2 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-1.0.0.alpha1 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.34.1 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.34.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.33.3 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.33.2 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.33.1 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.33.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.32.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.31.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.30.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.29.1 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.29.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.28.3 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.28.2 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.28.1 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.28.0 lib/generators/spotlight/templates/catalog_controller.rb
blacklight-spotlight-0.27.0 lib/generators/spotlight/templates/catalog_controller.rb