Class: Hyrax::LeaseSearchBuilder
- Inherits:
-
Blacklight::SearchBuilder
- Object
- Blacklight::SearchBuilder
- Hyrax::LeaseSearchBuilder
show all
- Defined in:
- app/search_builders/hyrax/lease_search_builder.rb
Overview
Finds objects under lease
Instance Method Summary
collapse
Instance Method Details
#only_active_leases(solr_params) ⇒ Object
15
16
17
18
|
# File 'app/search_builders/hyrax/lease_search_builder.rb', line 15
def only_active_leases(solr_params)
solr_params[:fq] ||= []
solr_params[:fq] = 'lease_expiration_date_dtsi:[* TO *]'
end
|
7
8
9
|
# File 'app/search_builders/hyrax/lease_search_builder.rb', line 7
def (solr_params)
solr_params[:rows] = 1000
end
|
#with_sorting(solr_params) ⇒ Object
11
12
13
|
# File 'app/search_builders/hyrax/lease_search_builder.rb', line 11
def with_sorting(solr_params)
solr_params[:sort] = 'lease_expiration_date_dtsi desc'
end
|