Fix delete by query : could now be called with no type / multiple types

As specified in the delete-by-query API (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-delete-by-query.html), I updated the 'delete' function to allow queries without type or with multiple types.