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


Release history Release notifications

History Node

3.0.1

History Node

3.0.0

History Node

2.4.1

History Node

2.4.0

History Node

2.3.0

History Node

2.2.0

History Node

2.1.0

History Node

2.0.1

History Node

2.0.0

History Node

1.8.1

History Node

1.8.0

History Node

1.7.460

History Node

1.6.460

History Node

1.5.460

History Node

1.4.460

History Node

1.3.460

History Node

1.2.460

This version
History Node

1.1.460

History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
solrcloudpy-1.1.460.tar.gz (14.8 kB) Copy SHA256 hash SHA256 Source None Apr 4, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page