-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensureIndexTemplate and indexTemplate not working #203
Comments
I have the same problem. |
same issue |
same problem :( |
I have the same issue |
are you using data streams ( |
Yes the template is not created, I'm not using data streams . |
Which version of ES are you running? I am trying to upgrade my plugin version, and I just found out 0.14.0 introduced a breaking change that only works on ES 7.8+. The new index template was introduced on ES 7.8, and those running 7.7- are bound to the legacy index template API calls. |
I have added more debug code for this. So please try with the latest release and enable debug output. |
Can someone follow up on this? Is this an issue with the ES version you are running? |
I have the same issue with current 0.17.2 (@elastic/elasticsearch 8.8.1, running with ES 8.7.0)
For some reason res is false, so the template isn't created. |
@vanthome the issue happens because to get statusCode from |
@vanthome appears to be Open PR that fixes this issue. Will this be corrected in the short-term? |
I want to add mappings to the index using indexTemplate .
i set ensureIndexTemplate to true and i put
indexTemplate: { mappings: { properties: { co: { index: true, type: "keyword", }, age: { type: "integer", }, }, }, }
but nothing happened.
The text was updated successfully, but these errors were encountered: