Skip to main content

Yet another minimalistic interface to Solr, with support for parameter keys with multiple values.

Project description

Sunny
=====

This is a very simple Solr interface for Python.

Usage
-----

>> import sunny
>> solr = sunny.Solr('http://localhost:8080/solr')
>> solr.query({'q': 'office'})
{u'responseHeader': {u'status': 0, u'QTime': ...

Parameters
----------

Solr parameters are passed as dictionaries where every value may be
either a string or a list of strings.

Example:

{'q': 'office',
'facet': 'on',
'facet.field': ['network', 'runtime']}
==>
?q=office&facet=on&facet.field=network&facet.field=runtime

If ``omdict`` is installed, you may use ``omdict`` instances instead.

``wt=json`` is passed with every request no matter what.

License
-------

BSD

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

sunny-0.0.2.zip (5.2 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