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

The API is mean to be close to pymongo’s API, where one can access collections and databases as simple attributes or dictionary keys.

Usage

conn = SolrConnection(["localhost:9983","localhost:8984"])
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://dfdeshom.github.io/solrcloudpy/console.html

Documentation and API

Documentation can be found at http://dfdeshom.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-1.5.460.tar.gz (16.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for solrcloudpy-1.5.460.tar.gz
Algorithm Hash digest
SHA256 e6c5a1490db8a36159af0c70fb3a1c48cf58a84f0b8ae582bc7859db18e0fd00
MD5 9ce554844ec33f93533f34c89fea2e33
BLAKE2b-256 7b9b90e13ba2f9e1a018ee4f54a26aec3661466e93bd8fd789142227d4727783

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