This class and a few others have this code, but it seems like it's taking a Python value, converting it to an Elasticsearch value and then converting it back to a Python value to send to Elasticsearch. That sounds fishy.