Sha256: 29f6f7adae86b4e723d7b716447123ca5c83cf343f19ed6376eddf2c3e6c99f7

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

= SolrmarcWrapper

Ruby wrapper for accessing SolrMarc and Solr objects, such as using org.solrmarc.marc.SolrReIndexer to get a SolrInputDocument from a marc record stored in the Solr index.

== Installation

Add this line to your application's Gemfile:

    gem 'solrmarc_wrapper'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install solrmarc_wrapper

== Usage

This gem must be run under JRuby, and also requires a solrmarc dist directory and solr url (see config/settings.yml)

Example:  this retrieves the full marc record stored in the Solr index, runs it through SolrMarc indexing to get a SolrInputDocument from the marcxml.  It current identifies Solr documents by the Solr "id" field, and expects the marc to be stored in a Solr field "marcxml" (this will be configurable in a future version).

  def solr_input_doc(id)
    @solrmarc_wrapper.get_solr_input_doc_from_marcxml(id)
  end


== Contributing

See also the wiki page for committers:  https://github.com/solrmarc/solrmarc_wrapper/wiki/For-Committers

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solrmarc_wrapper-0.0.4 README.rdoc