Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def scan(self, body, index, doc_type):
return helpers.scan(self.es, query=body, index=index, doc_type=doc_type, preserve_order=True)