toastdriven/django-haystack — pull request #971 by petebrowne (2014-03-11 20:52:03+00:00)
Title: Convert distance object to string for elasticsearch

After upgrading to ElasticSearch 1.0, `geo_distance` searches broke. Apparently the default unit the geo queries changed to meters:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_parameters.html

To maintain backwards compatibility with 0.90.x we can convert the distance object to a string with an explicit unit.