Skip to content

Commit feba596

Browse files
committed
Make sure EDS is only delivering full-text
1 parent afec308 commit feba596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/services/eds_service.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ def self.blacklight_style_search(params)
2424
end
2525

2626
def self.eds_style(params)
27+
params[:actions] = ['addLimiter(FT:y)']
2728
# EDS defaults to 20 pages, which is more than we want
2829
params['results_per_page'] ||= 10
2930
params['highlight'] = false
3031
params.with_indifferent_access
3132
end
3233

3334
def self.safe_params
34-
[:q, :page, :search_field, :db, :highlight, :view, 'results_per_page', { range: {}, f: {} }]
35+
[:q, :page, :search_field, :db, :highlight, :view, 'results_per_page', { actions: {}, range: {}, f: {} }]
3536
end
3637

3738
def self.send_to_eds

0 commit comments

Comments
 (0)