Skip to content

Commit ed58bb4

Browse files
committed
remove default rows params
1 parent 1a8424c commit ed58bb4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/blacklight/elasticsearch/search_builder_behavior.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module SearchBuilderBehavior
66

77
included do
88
self.default_processor_chain = [
9-
:setup_defaults,
9+
# :setup_defaults,
1010
:add_query,
1111
:empty_search_query,
1212
:add_facet_filter,
@@ -16,9 +16,10 @@ module SearchBuilderBehavior
1616
]
1717
end
1818

19-
def setup_defaults(_request)
20-
rows(blacklight_config.default_solr_params[:rows]) if blacklight_config.default_solr_params[:rows]
21-
end
19+
# def setup_defaults(_request)
20+
# # No need to set rows, because it's already set in the SearchService
21+
# rows(blacklight_config.default_solr_params[:rows]) if blacklight_config.default_solr_params[:rows]
22+
# end
2223

2324
def limit_to_specific_records(request, document_ids)
2425
request.ids = document_ids
@@ -122,8 +123,6 @@ def add_aggregation(request)
122123
# copy paging params from BL app over to solr, changing
123124
# app level per_page and page to Solr rows and start.
124125
def add_paging(request)
125-
rows(10) if rows.nil?
126-
127126
request[:size] = rows
128127
request[:from] = start if start.nonzero?
129128
end

0 commit comments

Comments
 (0)