def __init__(self, query_name, doc_type, index, client=None,<EOL>*args, **kwargs):
super(ESQuery, self).__init__()<EOL>self.index = index<EOL>self.client = client or current_search_client<EOL>self.query_name = query_name<EOL>self.doc_type = doc_type<EOL>
Constructor.

        :param doc_type: queried document type.
        :param index: queried index.
        :param client: elasticsearch client used to query.