Skip to content
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

Search template: Put source param into template variable #5598

Merged

Conversation

spinscale
Copy link
Contributor

If a search template was created using the source parameter, the
content of the parameter was put as source instead of sourceTemplate

Fixes #5556

@@ -423,8 +423,8 @@ public SearchRequest templateSource(BytesReference template, boolean unsafe) {
* The template of the search request.
*/
public SearchRequest templateSource(String source) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be we should change String source to String templateSource?

Just "cosmetic" change though... :)

@clintongormley
Copy link

++ Fixes my tests

If a search template was created using the source parameter, the
content of the parameter was put as source instead of sourceTemplate

Fixes elastic#5556
@spinscale spinscale merged commit fdcc843 into elastic:master Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

search_template does not support ?source=
3 participants