Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rsolr-cloud

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsolr-cloud

  • 1.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RSolr::Cloud

A RSolr's connection adopter supporting SolrCloud.

Installation

Add this line to your application's Gemfile:

gem 'rsolr-cloud'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rsolr-cloud

Example

require 'zk'
require 'rsolr/cloud'

# Create Zookeeper client for the Zookeeper ensemble in SolrCloud.
zk = ZK.new('localhost:2181,localhost:2182,localhost:2183')

# Connecting the SolrCloud through the Zookeeper.
cloud_connection = RSolr::Cloud::Connection.new(zk)

# Get rsolr client for solr_cloud.
solr_client  = RSolr::Client.new(cloud_connection,
                                 read_timeout: 60,
                                 open_timeout: 60)

# You can use rsolr as usual but :collection option must be specified with the name of the collection.
response = solr.get('select', collection: 'collection1', params: {q: '*:*'})

Contributing

  1. Fork it ( https://github.com/[my-github-username]/rsolr-cloud/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Development

To install gems which are necessary for development and testing:

$ bundle install

To run the test suite:

$ rake

The default rake task contains RuboCop and RSpec. Each task can be run separately:

$ rake rubocop
$ rake spec

FAQs

Package last updated on 24 Feb 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc