Skip to main content

No project description provided

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

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/

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_typed-0.1.0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solrcloudpy_typed-0.1.0-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file solrcloudpy_typed-0.1.0.tar.gz.

File metadata

  • Download URL: solrcloudpy_typed-0.1.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Windows/10

File hashes

Hashes for solrcloudpy_typed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d193b06999e5e53171f7016e0fff8f3fbd9a128fb78adc091c3ed5a2237aa42
MD5 a43bc68f860b3a0e363548187e8785c8
BLAKE2b-256 47dd3e6c4386c2503c9122d176a8d597a005bd629ebf415a51d5a00e57eaa799

See more details on using hashes here.

File details

Details for the file solrcloudpy_typed-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: solrcloudpy_typed-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Windows/10

File hashes

Hashes for solrcloudpy_typed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98c80c43fd1019a5fb4be2aa56186648197247581bf4e1e70a6c802814d9057c
MD5 8bc51b5a35222226cd6ecbb26d9fa61c
BLAKE2b-256 3e92b4df0a4d185fc22703d1f47baf597f041818246b57a5ef1c6529c9fef225

See more details on using hashes here.

Supported by

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