Update all ES queries to use Elasticsearch DSL (bug 1036168)

Why do we need to wait until v1? http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-function-score-query.html#_using_function_score