Class: Hyrax::DeactivatedLeaseSearchBuilder

Inherits:
LeaseSearchBuilder
  • Object
show all
Defined in:
app/search_builders/hyrax/deactivated_lease_search_builder.rb

Instance Method Summary collapse

Methods inherited from LeaseSearchBuilder

#only_active_leases, #with_pagination, #with_sorting

Instance Method Details

#with_deactivated_leases(solr_params) ⇒ Object


5
6
7
8
# File 'app/search_builders/hyrax/deactivated_lease_search_builder.rb', line 5

def with_deactivated_leases(solr_params)
  solr_params[:fq] ||= []
  solr_params[:fq] = 'lease_history_ssim:*'
end