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

Version Path
blacklight_advanced_search-5.3.1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.3.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-6.0.2 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-6.0.1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-6.0.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.2.1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.2.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.1.4 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.1.3 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.1.2 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.1.1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.1.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.0.1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-5.0.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-2.2.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-2.1.1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-2.1.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-2.1.0.rc1 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-2.0.0 lib/blacklight_advanced_search/filter_parser.rb
blacklight_advanced_search-1.2.4 lib/blacklight_advanced_search/filter_parser.rb