-
Notifications
You must be signed in to change notification settings - Fork 597
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
Cannot add search template in ES 6.3.1 #533
Comments
Hi @alexvollmer, I've looked at the API specification and it should indeed be a |
Hi @alexvollmer Is this still an issue? It looks like you are calling |
I'm going to close this because of no response. Please comment here if it persists. |
Sorry for the late response. I'm still seeing this with
I ran
The current source looks like it's still pointed at the wrong endpoint, if I'm reading this correctly. |
@estolfo If this change looks right, I'll turn it into a real PR. |
I also ran into a related issue with rendering search templates, for which I also have a proposed fix |
Sorry, I've removed my last response as I realized I was talking about the wrong template API. I'll have an update soon! |
@alexvollmer Would you mind providing the line of Ruby code where you are creating the template? |
@estolfo here's a code snippet for how we're loading the search template:
In this instance,
Thanks for re-opening the ticket. Let me know if I can provide any additional information. |
@alexvollmer Thanks for the response and code sample. As for the client.render_search_template(body: { id: 'test'}) Let me know if you test that and it works for you. |
@estolfo I tested your branch locally and it looks like that change fixes the issues I was seeing. As far as I'm concerned, that patch looks 👍 Thanks! |
Closing, as this issue is resolved by the referenced pull request #575 |
I've been testing an upgrade from Elasticsearch 5.6 to the latest (6.3.1) and ran into an issue with one of our rake tasks that creates a search template. Using v6.1.0 of the ruby client, I get the following error when attempting to use the
put_template
method:According to the docs, I believe the correct approach is to issue a POST against
_scripts/<template-name>
, but looking at the code it is issuing a PUT against_search/template/<template-name>
. Am I reading this correctly? Is there a different API call I should use instead?The text was updated successfully, but these errors were encountered: