lib/multi_solr/search_request.rb in multi-solr-01.04.00 vs lib/multi_solr/search_request.rb in multi-solr-01.05.00
- old
+ new
@@ -123,21 +123,21 @@
end
# Erzeugt aus den filter_values die Solr-Query
# liefert die Query als String
- def build_query
+ def build_query config=nil
solr_queries = []
@filter_values.each do |fname, value|
fa_composite = build_filter_value_composite fname, value
solr_query = fa_composite.build_solr_query
solr_queries << solr_query unless solr_query.blank?
end
solr_queries.join(' ')
end
- def render_filter_description
+ def render_filter_description config=nil
descriptions = []
@filter_values.each do |fname, value|
filter = self.class.possible_filters[fname]
raise "Unknown filter: #{fname}" if filter.nil?
value = filter.render_value value
\ No newline at end of file