Sha256: 9cde1b03bed0b2fd2e1c8f9f66d448a01c86f1d7ec8ff89685c7e0be382c3b3c
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 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 identifies Solr documents by the Solr "id" field, and expects the marc to be stored in a Solr field "marcxml". def solr_input_doc(id) @solrmarc_wrapper.get_solr_input_doc_from_marcxml(id) end == Contributing 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solrmarc_wrapper-0.0.2 | README.rdoc |
solrmarc_wrapper-0.0.1 | README.rdoc |