ESTestCase now derives from django.test.TestCase which means
it requires DATABASES settings. This adds sqlite in-memory
settings to test_settings.py.
Moved the middleware error templates so that they're in
the elasticutils.contrib.django Django app.
* nix pyes things
* update to pyelasticsearch things
* fixes MLT so it works with pyelasticsearch (requires fixes that
should be in pyelasticsearch 0.3 when that gets released)
* changes MLT fields argument to mlt_fields
* nixes all the dump curl code
* cleans up imports
* fixes defaults so that S defaults to searching all indexes and
all doctypes
* adjusts errors so they all derive from ElasticUtilsError
* cleans up get_es() and S.get_es() so they're correct
* add DeprecationWarning for deprecated things
* update test code for MLT
In elasticutils.contrib.django:
* ditch the thread-local caching of ElasticSearch objects (we'll
implement something better soon since pyelasticsearch's ElasticSearch
objects are thread-safe)
* removed statsd code from the django-related code
* change ES_HOSTS to ES_URLS
* update index method (need to add a new bulk_index method)
* update test code for django-related bits
All the S.get_indexes() returned a list of indexes except the one
in Django contrib which could return a basestring or a list of
indexes.
Ditto for S.get_doctypes().
This fixes that, adds docs, and adds tests.