Skip to main content

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

Version 4.x is compatible with all supported versions of SolrCloud. For older versions, you should consider using 3.x, which supports versions 4 through 6. 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':'*:*'})

Documentation and API

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

Release files for solrcloudpy 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solrcloudpy 4.0.1
File Size Uploaded
solrcloudpy-4.0.1.tar.gz 20.7 kB Details

Release files / solrcloudpy-4.0.1.tar.gz

Download URL solrcloudpy-4.0.1.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
213397fb4202e2f6ef72f3635cb418c0bd6be9f03913b3059a0132df5f1217d0
BLAKE2b-256 checksum
How to use checksums
f2d720c0204face333269761836daf08f6a6b8cf285c1a99226798bc451f9d07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

4.0.1 This release

1 release file

4.0.0

1 release file

3.0.4

1 release file

3.0.3

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.8.1

1 release file

1.8.0

1 release file

1.7.460

1 release file

1.6.460

1 release file

1.5.460

1 release file

1.4.460

1 release file

1.3.460

1 release file

1.2.460

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page