Skip to content

Commit

Permalink
Fix liquid syntax errors. (#7785) (#7796)
Browse files Browse the repository at this point in the history
  • Loading branch information
opensearch-trigger-bot[bot] authored Jul 22, 2024
1 parent 6bbd91d commit f4f322a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _api-reference/render-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Both of the following request examples use the search template with the template
"source": {
"query": {
"match": {
"play_name": "{{play_name}}"
"play_name": "{% raw %}{{play_name}}{% endraw %}"
}
}
},
Expand Down Expand Up @@ -76,11 +76,11 @@ If you don't want to use a saved template, or want to test a template before sav
```
{
"source": {
"from": "{{from}}{{^from}}10{{/from}}",
"size": "{{size}}{{^size}}10{{/size}}",
"from": "{% raw %}{{from}}{{^from}}0{{/from}}{% endraw %}",
"size": "{% raw %}{{size}}{{^size}}10{{/size}}{% endraw %}",
"query": {
"match": {
"play_name": "{{play_name}}"
"play_name": "{% raw %}{{play_name}}{% endraw %}"
}
}
},
Expand Down

0 comments on commit f4f322a

Please sign in to comment.