Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
"b": {
"type": "integer"
},
"c": {"properties": {
"d": {"type": "keyword", "ignore_above": 1024},
"e": {"type": "keyword", "ignore_above": 1024}
}
}
}
}
}
}
response.read.return_value = json.dumps(dic).encode("utf-8")
mock_urlopen.return_value = response
return DataFrame.from_es(url="http://localhost:9200", index='index', compat=7)
"b": {
"type": "integer"
},
"c": {"properties": {
"d": {"type": "keyword", "ignore_above": 1024},
"e": {"type": "keyword", "ignore_above": 1024}
}
}
}
}
}
}
}
response.read.return_value = json.dumps(dic).encode("utf-8")
mock_urlopen.return_value = response
return DataFrame.from_es(url="http://localhost:9200", index='index', doc_type='doc_type')