Skip to content
python library for interacting with SolrCloud
Branch: master
Clone or download
andresau and relwell Add use_https option for allowing https protocol in SolrConnection (#47)
* Add use_https option for allowing https protocol in SolrConnection

* update pydocs to include use_https
Latest commit f6b7fc6 Aug 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Add support for incompatible versions of SolrCloud May 14, 2016
scripts Add support for clusterhealth in Solr >5.4 Jul 24, 2016
solrcloudpy
test
.gitignore added virtualenv folder to gitignore Mar 5, 2016
.travis.yml one more travis fix Aug 11, 2018
LICENSE.txt Updated documentation, license. PEP8 version Mar 12, 2016
MANIFEST.in
README.rst
code-of-conduct.md Updated documentation, license. PEP8 version Mar 12, 2016
deploy.sh specify where to upload from pypirc file Mar 30, 2015
setup.py

README.rst

solrcloudpy

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

It is compatible with versions 4.6 up to 6.0. 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':'*:*'})

Console

solrcloudpy comes with a console that can be run simply by typing solrconsole. More information on usage is available at http://solrcloudpy.github.io/solrcloudpy/console.html

Documentation and API

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

You can’t perform that action at this time.