I am facing an issue:
RequestError(400, 'illegal_argument_exception', 'mapper [columns.analysis.abstract_stats.description.std] of different type, current_type [text], merged_type [float]')
which led me to go for a solution described here.
My current code which is generating the aforementioned error is:
from test_mapping import a
es = Elasticsearch([{'host': 'A.B.C.D', 'port': 9200}])
try:
es.index(index='datatables', doc_type='datatable_v1', id="pallet_d3dd6729b810bebd955708e85afc1f65c3f2685c", body=a)
except Exception as e:
print (e)
The index existed before but I have deleted it and then running the above code is still generating the above error. The variable a is here