Skip to content

Commit a40b15c

Browse files
authored
Merge pull request #3685 from projectblacklight/custom-index
Provide a way for applications to customize search result retrieval
2 parents 4e146fa + 9b90ad4 commit a40b15c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/controllers/concerns/blacklight/catalog.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Blacklight::Catalog
2323

2424
# get search results from the solr index
2525
def index
26-
@response = search_service.search_results
26+
@response = retrieve_search_results
2727

2828
respond_to do |format|
2929
format.html { store_preferred_view }
@@ -143,6 +143,11 @@ def has_search_parameters?
143143

144144
private
145145

146+
# This method may be overridden to customize search behavior.
147+
def retrieve_search_results
148+
search_service.search_results
149+
end
150+
146151
#
147152
# non-routable methods ->
148153
#

0 commit comments

Comments
 (0)