Sha256: 1b6ab46391447e2ab46953d8025643b1bba93103b200857fadf557e5a2a2e832

Contents?: true

Size: 1.56 KB

Versions: 30

Compression:

Stored size: 1.56 KB

Contents

require 'kithe/blacklight_tools/search_service_bulk_load'

module Kithe
  module BlacklightTools
    # A convenience sub-class of Blacklight::SearchService that
    # _just_ includes Kithe::BlacklightTools::SearchServiceBulkLoad.
    #
    # So if you just need a stock Blacklight::SearchService with this
    # functionality, in your CatalogController you can conveniently simply:
    #
    #     require 'kithe/blacklight_tools/bulk_loading_search_service'
    #     class CatalogController < ApplicationController
    #       include Blacklight::Catalog
    #       # ...
    #
    #       self.search_service_class = Kithe::BlacklightTools::BulkLoadingSearchService
    #
    #       # ...
    #     end
    #
    # Do NOT sub-class this BulkLoadingSearchService in a local app or gem.
    # If you need more things in a SearchService, instead make your own
    # SearchService subclass and
    # `include Kithe::BlacklightTools::SearchServiceBulkLoad` directly.
    # This class is simply a convenience for when you need nothing else.
    #
    # Kithe devs: Don't add anything to this class beyond
    # `include Kithe::BlacklightTools::SearchServiceBulkLoad`, so that remains true!
    #
    # Note: This is in `./lib` rather than `./app` so it should never get
    # auto-loaded by the app, as kithe does not require Blacklight and loading
    # this file without Blacklight would produce an error. Thus the need
    # for the explicit "require"
    class BulkLoadingSearchService < ::Blacklight::SearchService
      include Kithe::BlacklightTools::SearchServiceBulkLoad
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
kithe-2.16.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.15.1 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.15.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.14.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.13.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.12.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.11.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.10.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.9.1 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.9.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.8.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.7.1 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.7.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.6.1 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.6.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.5.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.4.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.3.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.2.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb
kithe-2.1.0 lib/kithe/blacklight_tools/bulk_loading_search_service.rb