Metadata-Version: 2.1
Name: solrcloudpy-typed
Version: 0.1.0
Summary: 
Author: Mehul Ahal
Author-email: m.ahal@dimerce.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: future
Requires-Dist: ipython
Requires-Dist: pathlib2
Requires-Dist: requests
Requires-Dist: semver
Description-Content-Type: text/x-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

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
-------
.. code-block:: python

     conn = SolrConnection(["localhost:9983","localhost:8984"], version="6.0.0")
     conn.create('test1',num_shards=1,replication_factor=2)


Access an existing collection:

.. code-block:: python

     conn.test_collection.search({'q':'query1'})
     conn["test_collection"].search({'q':'query2'})

Index documents:

.. code-block:: python

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

Search documents:

 .. code-block:: python

      collection.search({'q':'*:*'})

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

