Sha256: 61c6e45e6da3132de86374e896c518282ac6a5dd7e89a39e3a3012a67728eedb
Contents?: true
Size: 442 Bytes
Versions: 33
Compression:
Stored size: 442 Bytes
Contents
module BlacklightAdvancedSearch::FilterParser # Returns an array of solr :fq params. taking advanced search inclusive # facet value lists out of params. def generate_solr_fq filter_queries = [] filters.each do |solr_field, value_list| filter_queries << "#{solr_field}:(" + value_list.collect {|v| '"' + v.gsub('"', '\"') +'"' }.join(" OR ") + ")" end return filter_queries end end
Version data entries
33 entries across 33 versions & 1 rubygems