We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue refers to this discussion
There's no way with the Java client API to create a template and set the source like that :
PutIndexTemplateResponse response = client.admin().indices() .preparePutTemplate("twitter_template"). .setSource(sourceTemplate) .execute() .actionGet();
instead to set settings, mappings ... like that :
PutIndexTemplateResponse response = client.admin().indices() .preparePutTemplate("twitter_template") .setTemplate("twitter*") .addMapping("tweet", sourceMapping) .setSettings(sourceSettings) .execute() .actionGet();
We have to move the parsing logic from RestPutIndexTemplateAction.handleRequest() method to the PutIndexTemplateRequest.setSource() method
RestPutIndexTemplateAction.handleRequest()
PutIndexTemplateRequest.setSource()
The text was updated successfully, but these errors were encountered:
Fix for issue elastic#1860 : Index Templates API - Set Source
995798d
Fix for issue #1860 : Index Templates API - Set Source
f1a8e7e
e6743ee
3bab606
No branches or pull requests
This issue refers to this discussion
Context :
There's no way with the Java client API to create a template and set the source like that :
instead to set settings, mappings ... like that :
Solution :
We have to move the parsing logic from
RestPutIndexTemplateAction.handleRequest()
method to thePutIndexTemplateRequest.setSource()
methodThe text was updated successfully, but these errors were encountered: