Sha256: 449a9ff767e63a38a2a325d475e86021692c77a3cac6d5ebbe5c0fd4a4d14733

Contents?: true

Size: 737 Bytes

Versions: 13

Compression:

Stored size: 737 Bytes

Contents

class CatalogController < ApplicationController
  include Blacklight::Catalog

  configure_blacklight do |config|
      config.default_solr_params = { 
        :qt => 'search',
        :rows => 10 
      }

      config.add_facet_field 'language_facet'

      config.add_search_field('title') do |field|
        field.solr_local_parameters = { :qf => "title_t", :pf => "title_t"}
      end

      config.add_search_field('author') do |field|
        field.solr_local_parameters = { :qf => "author_t", :pf => "author_t"}
      end

      config.add_search_field('dummy_field') do |field|
        field.include_in_advanced_search = false
        field.solr_local_parameters = { :qf => "author_t", :pf => "author_t"}
      end
    end
  end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blacklight_advanced_search-5.3.1 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.3.0 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-6.0.0 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.2.1 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.2.0 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.1.4 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.1.3 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.1.2 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.1.1 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.1.0 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.0.1 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-5.0.0 spec/test_app_templates/app/controllers/catalog_controller.rb
blacklight_advanced_search-2.2.0 spec/test_app_templates/app/controllers/catalog_controller.rb