mysolr 0.5
Solr Python binding
Latest Version: 0.6
Fast python solr binding. Check full documentation here
Features
- Full query syntax support
- Facets support
- Highlighting support
- Spellchecker support
- Stats support
- Concurrent searchs
- Python 3 compatible
Instalation
From source code:
python setup.py install
From pypi:
pip intall mysolr
Usage
from mysolr import Solr
# Default connection to localhost:8080
solr = Solr()
# All solr params are supported!
query = {'q' : '*:*', 'facet' : 'true', 'facet.field' : 'foo'}
response = solr.search(**query)
# do stuff with documents
for document in response.documents:
# modify field 'foo'
document['foo'] = 'bar'
# update index with modified documents
solr.update(response.documents, commit=True)
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| mysolr-0.5.tar.gz (md5) | Source | 2012-02-02 | 5KB | 275 | |
- Author: Rubén Abad, Miguel Olivares
- Home Page: http://mysolr.redtuna.org
-
Categories
- Development Status :: 1 - Planning
- Intended Audience :: Developers
- License :: OSI Approved :: BSD License
- Natural Language :: English
- Operating System :: OS Independent
- Programming Language :: Python
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3.2
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: moliware, ruabag
- Package Index Maintainer: moliware
- DOAP record: mysolr-0.5.xml
