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

from solrcloudpy.connection import HTTPConnection
from solrcloudpy.collection import Collection

conn = HTTPConnection(["localhost:9983","localhost:8984"])
collection = Collection(conn)
collection.create('test1',num_shards=1,replication_factor=2)

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

# Searching documents
print collection.test1.search(q='*:*')

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.0.1.tar.gz (6.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for solrcloudpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5e1b6121f6836e34514c9ad6bb77ba0c6237ae8b499c11834feaa22ee0a8d2da
MD5 392016634adc7e5a02314e9af9686295
BLAKE2b-256 ffcc1d3ccfbd73983d0e00fc37e84612a784435ffa9d150b1aec513b6710f3e0

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