Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def runSetup(self, jsonPath):
self.pandas_to_json(jsonPath)
self.save_json(self.searchIndex)
def check_cat(self, description):
return 'tor'
def free_mem(self):
del self.briefList
del self.namesList
del self.datesList
del self.titleList
if __name__ == '__main__':
test = DarkElastic()
test.runSetup("../logs/process2.json")
# Build your index.
test.ingest_items()
es.indices.refresh(index='dark')
print test.search_index('dark', 'cocaine', 15, 10)