markwk / qs_ledger

Quantified Self Personal Data Aggregator and Data Analysis
MIT License
978 stars 197 forks source link

apple_health_data2elastic NOT WORKING :( #20

Open noniguez opened 2 years ago

noniguez commented 2 years ago

Hi everyone, I'd appreciate your help. I tried to run this code in Jupyter Lab, and it is not working. The main issues are in cell [18]

# Create Customized Index Mappings     
es.indices.put_mapping(index=INDEX, doc_type=TYPE, body=d, include_type_name=True)  

Apparently, elasticsearch 8.1 made some changes and there are issues with the arguments in put_mapping. I uninstalled 8.1 and installed elastic 7.1, and now there is a ConnectionError.

Dear Mark, could you please update the file? Thank you so much!