Skip to content

Commit

Permalink
Add example usage to the generated SearchBuilder; fixes #1492
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 15, 2016
1 parent e596610 commit f64b9c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/generators/blacklight/templates/search_builder.rb
@@ -1,4 +1,12 @@
# frozen_string_literal: true
class SearchBuilder < 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

0 comments on commit f64b9c2

Please sign in to comment.