Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add class level documentation for Hyrax::CatalogSearchBuilder #3388

Merged
merged 1 commit into from
Nov 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions app/search_builders/hyrax/catalog_search_builder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
##
# The default Blacklight catalog `search_builder_class` for Hyrax.
#
# Use of this builder is configured in the `CatalogController` generated by
# Hyrax's install task.
#
# If you plan to customize the base catalog search builder behavior (e.g. by
# adding a mixin module provided by a blacklight extension gem), inheriting this
# class, customizing behavior, and reconfiguring `CatalogController` is the
# preferred mechanism.
#
# @example extending and customizing SearchBuilder
# class MyApp::CustomCatalogSearchBuilder < Hyrax::CatalogSearchBuilder
# include BlacklightRangeLimit::RangeLimitBuilder
# # and/or other extensions
# end
#
# class CatalogController < ApplicationController
# # ...
# configure_blacklight do |config|
# config.search_builder_class = MyApp::CustomCatalogSearchBuilder
# # ...
# end
# # ...
# end
#
# @see Blacklight::SearchBuilder
# @see Hyrax::SearchFilters
class Hyrax::CatalogSearchBuilder < Hyrax::SearchBuilder
self.default_processor_chain += [
:add_access_controls_to_solr_params,
Expand Down