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 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