如何使用Python在ElasticSearch中存储对象

时间:2018-07-25 14:24:15

标签: python pandas elasticsearch

这就是创建我的对象(配置文件)的方式
df = pd.read_csv(string_object, parse_dates=True, sep=",") profile = pp.ProfileReport(df)

我知道我必须创建一个索引,我发现了用于存储图像的类似代码,但是我不理解,只是示例代码。

client = Elasticsearch([{'host': 'localhost', 'port': 9200}])

def persist_image_in_elastic(imagePath):
   //Example Fluff Code

    elasticResp = client.index(index=elasticIndex, doc_type=doc_type, id=idForReceivedImage, body=rawImageModel)

0 个答案:

没有答案