Support `requests` http library
This removes the explicit dependency on `httplib2` and now attempts to import `requests`, falling back to `httplib2` and finally raising an `ImportError` if neither is available. The `http_connection` argument accepts either a `requests.Session` object or an `httplib2.Http` object.
Use `dir` builtin, rather than traversing __dict__
This captures attributes inherited from parent classes which the old method missed. It also respects customizations that objects might make to their own __dir__ representation. Plus it's shorter! We also remove the `hasttr('items')` check as this is redundant: the only place which calls this function already checks for this.
* previously it was on the SolrInterface, which meant you couldn't create a query() for a delete() on a write-only core
Fix querying documentation on faceting
Correct minor changelog merge issue
Documentation for field names
fix typo error
Merge Timetric changes
Support Solr JSON api
The general principle here is that because the dicts json.loads gives us are very close to the final format we want, we can just do a few in-place modifications to these dicts rather than build entirely new data structures.
For large results sets, this can be parsed and interpreted much more efficiently than the equivalent XML response. TODO: * Support JSON for queries other than /select * Support "interestingTerms" in MLT queries
Unused imports and redefinition of function
Correct a merge issue in the change log - some lines got out of sync
Update faceting documentation to reflect correct argument (changed 'fields' argument for `facet_by` to 'field')
Provide default string-based field for schema field types unknown to Sunburnt
…Sunburnt. This allows Sunburnt to continue to function on field types it knows nothing about, using strings as values (as Solr stores them). Conflicts: Changelog Conflicts: Changelog
Escape forward slash characters in Solr strings for Solr 4+
Fix boost_relevancy handling for some queries
Ensure 'more like this' are constructor'd + fix Sunburnt tests