Sha256: cbf818fdce522a72861d22cf79e8ace65238eeb096e341267e3836535dacce24

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

module Sunspot
  module Query
    class QueryFieldFacet < QueryFacet
      def initialize(field, values)
        super(field.name)
        @field = field
        values.each do |value|
          add_row(value).add_component(Restriction::EqualTo.new(field, value))
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
UnderpantsGnome-sunspot-0.9.8.1 lib/sunspot/query/query_field_facet.rb
kristopher-sunspot-0.9.8 lib/sunspot/query/query_field_facet.rb
outoftime-sunspot-0.9.7 lib/sunspot/query/query_field_facet.rb
outoftime-sunspot-0.9.8 lib/sunspot/query/query_field_facet.rb
sunspot-0.9.8 lib/sunspot/query/query_field_facet.rb
sunspot-0.9.7 lib/sunspot/query/query_field_facet.rb