Sha256: eac37e2c8d28d6185f47e68a8e715b240f80a2b88adec5923965157db69b7c98

Contents?: true

Size: 181 Bytes

Versions: 2

Compression:

Stored size: 181 Bytes

Contents

module SolrSupport

  def create_solr_doc(hash)
    doc = SolrDocument.new(hash)
    solr = Blacklight.default_index.connection
    solr.add(doc)
    solr.commit
    doc
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-access_controls-0.2.0 spec/support/solr_support.rb
blacklight-access_controls-0.1.0 spec/support/solr_support.rb