Socket
Book a DemoInstallSign in
Socket

solrj_wrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solrj_wrapper

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

= SolrjWrapper

{Build Status}[https://travis-ci.org/sul-dlss/solrj_wrapper] {Gem Version}[http://badge.fury.io/rb/solrj_wrapper]

Ruby wrapper for interacting with Solrj objects, such as org.apache.solr.client.solrj.impl.HttpSolrServer.

== Installation

Add this line to your application's Gemfile:

gem 'solrj_wrapper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install solrj_wrapper

== Usage

This gem must be run under JRuby, and also requires a directory containing Solrj jar files and solr url (see config/settings.yml).

It is known to work with Solr(J) release 4.4. Other versions of SolrJ may not work.

Here are some examples of use cribbed from the specs:

sjw = SolrjWrapper.new(solrj_jar_dir, solr_url, solrj_queue_size, solrj_num_threads)

sjw.get_query_result_docs(q).should be_an_instance_of(Java::OrgApacheSolrCommon::SolrDocumentList) sjw.query_server.should be_an_instance_of(Java::OrgApacheSolrClientSolrjImpl::HttpSolrServer) sid = Java::OrgApacheSolrCommon::SolrInputDocument.new sjw.add_vals_to_fld(sid, "single", ["val"])

== Contributing

See also the wiki page for committers: https://github.com/sul-dlss/solrj_wrapper/wiki/For-Committers

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 17 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.