Change 'text' query to 'match': the query DSL has deprecated text queries in favor of match queries, and text queries are removed in ES 1.0
Update for compatibility with ES 1.0.0 and elasticsearch-py 1.0.0 -- contains breaking changes, cannot be deployed without also upgrading to 1.0.0