Sha256: 06c4127e5bb63937a14298eef78393e01bdbf0fd2fbba98d0c73dc1a1d9c141a

Contents?: true

Size: 529 Bytes

Versions: 15

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true
module Blacklight::Searchable
  # @return [Blacklight::SearchService]
  def search_service
    search_service_class.new(config: blacklight_config, user_params: search_state.to_h, **search_service_context)
  end

  # @return [Hash] a hash of context information to pass through to the search service
  def search_service_context
    {}
  end

  # @return [Blacklight::SuggestSearch]
  def suggestions_service
    Blacklight::SuggestSearch.new(params, search_service.repository).suggestions
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
blacklight-7.10.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.9.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.8.1 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.8.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.7.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.6.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.5.1 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.5.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.4.2 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.4.1 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.4.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.3.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.2.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.1.0 app/controllers/concerns/blacklight/searchable.rb
blacklight-7.1.0.alpha app/controllers/concerns/blacklight/searchable.rb