solr
Postgresql has really come a long way from being the standard but relatively slow database to the feature rich and extremely fast database what it is...
StatsComponent is now available with stats function in the suburnt Solr python client library. More info: http://wiki.apache.org/solr/StatsComponent Example:
1 2 3 4 5 6 7 |
from sunburnt import SolrInterface si = SolrInterface(SOLR_URL) si = si.query('*') si = si.stats(fields=['price', ]) _r = si.execute() print _r.stats_counts.stats_fields |
For the source code go to my github...
Dataimport handler I had to trigger the dataimporter delta-import command from the code so I added support for this function. Example:
1 2 3 4 5 6 7 |
from sunburnt import SolrInterface SOLR_URL = 'http://some.url:8983/solr/' _s = SolrInterface(SOLR_URL) _s.dataimport('delta-import') _response = _s.dataimport('status') print _response.import_status print _response.import_status.time_taken |
Following properties are available...
I’ve added spatial filtering to the sunburnt library. The feature is now available with filter_spatial function. Example usage
1 2 3 4 5 |
from sunburnt import SolrInterface SOLR_URL = 'http://some.url:8983/solr/' _s = SolrInterface(SOLR_URL) _s.query('*') _s.filter_spatial(latlon=(52.3702157, 4.8951679), distance=10) |
Currently this will use bbox by default....
Autosuggest is always a deal breaker in web applications. Normally users interact with the site once in every 20-30 seconds or even less frequent. That means...
Recent comments