Skip to main content

Solr Python binding

Project description

Fast python solr binding

Instalation

From source code:

python setup.py install

Solr Configuration

To update Solr Index using JSON, a few lines must be added at Solr’s solrconfig.xml:

<requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler" startup="lazy" />

Usage

>>> from mysolr import Solr
>>> solr = Solr()
>>> response = solr.search(q='*:*')
>>> response.status
0
>>> response.qtime
1
>>> response.start
0
>>> response.total_results
1394500
>>> response.documents
[{...},...]

Project details


Download files

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

Source Distribution

mysolr-0.2.tar.gz (4.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page