Solr python interface – Sunburnt fork

I forked tow (Toby White, gratitude for his great work) sunburnt repository from github because I needed range facet funcionality and the workaround (with the filter queries) wasn’t quite what I wanted.

You can checkout here: https://github.com/charlesnagy/sunburnt

Docs about it:

Range facets

More about range facets see: http://wiki.apache.org/solr/SimpleFacetParameters#Facet_by_Range

Now sunburnt support range facets as well. Every range field can be set separately in order to fulfill the requirements. The facet_ranger.update() method takes a dictionary with the field names and the essential parameters (start, end and gap).

Simple usage

Full example

Comments and ideas are welcomed.

 

You might like these too

Stop using await in a Python forloop Disclaimer: This might sound to be a rant but stay with me and you will see this will be a very good practical advise to speed up your async python c...
Sunburnt Solr spatial filter support I've added spatial filtering to the sunburnt library. The feature is now available with filter_spatial function. Example usage Currently this will...
BitTornado library forked by me on GitHub I just forked and committed some patches to the BitTornado library on GitHub. https://github.com/charlesnagy/BitTornado Right now I only committ...