Sha256: 26ebbfda85371f63b9b4f7001f91c8fcdbce60697b298ee4ee8909838b91e798

Contents?: true

Size: 523 Bytes

Versions: 43

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true
module Blacklight
  module Suggest
    extend ActiveSupport::Concern

    included do
      include Blacklight::Configurable
      include Blacklight::SearchHelper

      copy_blacklight_config_from(CatalogController)
    end

    def index
      respond_to do |format|
        format.json do
          render json: suggestions_service.suggestions
        end
      end
    end

    def suggestions_service
      Blacklight::SuggestSearch.new(params, repository).suggestions
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
blacklight-6.25.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.24.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.23.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.22.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.21.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.20.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.19.2 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.19.1 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.19.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.18.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.17.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.16.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.15.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.14.1 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.14.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.13.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.12.0 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.11.2 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.11.1 app/controllers/concerns/blacklight/suggest.rb
blacklight-6.11.0 app/controllers/concerns/blacklight/suggest.rb