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
=====
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
Release history Release notifications | RSS feed
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)