Skip to main content

python library for interacting with SolrCloud

Project description

solrcloudpy is a python library for interacting with SolrCloud. This library aims to take advantage of the following features of Solr:

  • Distributed indexing and searching and transparent failover

  • Full JSON api

  • Centralized index management

  • Near-realtime search

It is compatible with versions 4.6 up to 6.0. The API is meant to be close to pymongo’s API, where one can access collections and databases as simple attributes or dictionary keys.

As of 2016, this library is maintained by the Solrcloudpy community. Contributions are welcome.

Usage

conn = SolrConnection(["localhost:9983","localhost:8984"], version="6.0.0")
conn.create('test1',num_shards=1,replication_factor=2)

Access an existing collection:

conn.test_collection.search({'q':'query1'})
conn["test_collection"].search({'q':'query2'})

Index documents:

docs = [{"id":"1", "name":"a"},{"id":"2","name":"b"}]
collection.add(docs)

Search documents:

collection.search({'q':'*:*'})

Console

solrcloudpy comes with a console that can be run simply by typing solrconsole. More information on usage is available at http://solrcloudpy.github.io/solrcloudpy/console.html

Documentation and API

Documentation can be found at http://solrcloudpy.github.io/solrcloudpy/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solrcloudpy-2.0.1.tar.gz (20.2 kB view details)

Uploaded Source

File details

Details for the file solrcloudpy-2.0.1.tar.gz.

File metadata

  • Download URL: solrcloudpy-2.0.1.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for solrcloudpy-2.0.1.tar.gz
Algorithm Hash digest
SHA256 a733e876b6e17a6a633d5447a9d0fd45bb2bfa8e0ba5e1d73b691a8081c3fce5
MD5 2c36e6294aded25875fa7ff2343c86c3
BLAKE2b-256 9d74a38f1120bea64b1a57a6eab05fcad5c35bcb1a3babc5724b4185baafc2f6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page