projectblacklight/blacklight

View on GitHub
lib/generators/blacklight/templates/search_builder.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
class <%= model_name.classify %> < Blacklight::SearchBuilder
  include Blacklight::Solr::SearchBuilderBehavior

  ##
  # @example Adding a new step to the processor chain
  #   self.default_processor_chain += [:add_custom_data_to_query]
  #
  #   def add_custom_data_to_query(solr_parameters)
  #     solr_parameters[:custom] = blacklight_params[:user_value]
  #   end
end