Skip to main content

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

Project description


This is a very simple Solr interface for Python.


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


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


{'q': 'office',
'facet': 'on',
'facet.field': ['network', 'runtime']}

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

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



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 (5.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page