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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file solrcloudpy-1.1.460.tar.gz
.
File metadata
- Download URL: solrcloudpy-1.1.460.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c18b041211753c1a436e2b52c9c29ab16b08c0d31b9b696e051ad540870620e6 |
|
MD5 | 5e57ef64545e2f77134ed4eaa2cc4787 |
|
BLAKE2b-256 | 5866bff83f04299050911c438e7a4fd9707843c5ff1ecd62d634056b22799add |