Sha256: 8cb1e4ecd75cbd8c5f26665cca084acea33a4de543515c06cd3a139501d82909

Contents?: true

Size: 259 Bytes

Versions: 75

Compression:

Stored size: 259 Bytes

Contents

module Solr
  class Document
    def field_by_name(field_name)
      @fields.find { |field| field.name.to_s == field_name.to_s }
    end

    def fields_by_name(field_name)
      @fields.select { |field| field.name.to_s == field_name.to_s }
    end
  end
end

Version data entries

75 entries across 75 versions & 14 rubygems

Version Path
sunspot_stats-0.0.6 spec/ext.rb
sunspot-2.0.0 spec/ext.rb
sunspot-2.0.0.pre.130115 spec/ext.rb
gojee-sunspot-2.0.5 spec/ext.rb
sunspot-2.0.0.pre.120925 spec/ext.rb
sunspot_solr-2.0.0.pre.120924 sunspot/spec/ext.rb
sunspot_rails-2.0.0.pre.120924 sunspot/spec/ext.rb
sunspot-2.0.0.pre.120924 sunspot/spec/ext.rb
gojee-sunspot-2.0.4 spec/ext.rb
gojee-sunspot-2.0.2 spec/ext.rb
sunspot_stats-0.0.5 spec/ext.rb
sunspot_stats-0.0.4 spec/ext.rb
sunspot-2.0.0.pre.120720 spec/ext.rb
sunspot_stats-0.0.3 spec/ext.rb
sunspot-1.3.3 spec/ext.rb
sunspot-1.3.2 spec/ext.rb
sunspot-2.0.0.pre.120417 spec/ext.rb
sunspot-2.0.0.pre.120415 spec/ext.rb
sunspot-1.3.1 spec/ext.rb
erichummel-sunspot-2.0.0.pre.111215d spec/ext.rb