Sha256: 5ef726790ffd4951adcdaea17feacc4b00109b26c145449566934881f6e8a1db

Contents?: true

Size: 211 Bytes

Versions: 5

Compression:

Stored size: 211 Bytes

Contents

# frozen_string_literal: true
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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-access_controls-0.5.1 spec/support/solr_support.rb
blacklight-access_controls-0.5.0 spec/support/solr_support.rb
blacklight-access_controls-0.4.1 spec/support/solr_support.rb
blacklight-access_controls-0.4.0 spec/support/solr_support.rb
blacklight-access_controls-0.3.0 spec/support/solr_support.rb