I've tried to look into the warning and I see this:
{"error":{"root_cause":[{"type":"resource_not_found_exception","reason":"index template matching [stesssss [status:400 request:5.296s] not found"}],"type":"resource_not_found_exception","reason":"index template matching [stesssss [status:400 request:5.296s] not found"},"status":404}
Could someone please help why I get this error? The roo_cause is more strange for me since obviously index template does not exist and I just want to create it! What am I doing wrong?
Hi Stephenb,
Thanks for your response. Create does not seem to be the solution. Generally the python API is very much vague to me! I have tried to use create but it tells me it is not defined! This is how I use it:
response = ic.put_index_template(name=template_name, body=tem_body, params=create)
NameError: name 'create' is not defined
My understanding from definition of create in the API ( * create – Whether the index template should only be added if new or can also replace an existing one) is that it is a boolean variable but when I try to use it as bool (below code) it gives me an other error:
File ".../python3.9/site-packages/elasticsearch/client/utils.py", line 168, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
TypeError: put_index_template() got multiple values for argument 'params'
If you have an example of how to use the API, I very much appreciate it. I actually have tried different things but non of them work and I cannot think of anything else!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.