From 66a9bfc2719057186fdf82ef8ef3409524ec31b4 Mon Sep 17 00:00:00 2001 From: Archer Date: Fri, 19 Jul 2024 13:02:25 -0500 Subject: [PATCH 1/4] Fix liquid syntax errors. Signed-off-by: Archer --- _api-reference/render-template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_api-reference/render-template.md b/_api-reference/render-template.md index 16bada0290..905492fdbf 100644 --- a/_api-reference/render-template.md +++ b/_api-reference/render-template.md @@ -76,8 +76,8 @@ 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}}" From 4d295098018524fc6766109bbf5c40156ab65d65 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:15:21 -0500 Subject: [PATCH 2/4] Update render-template.md Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _api-reference/render-template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_api-reference/render-template.md b/_api-reference/render-template.md index 905492fdbf..d304d5ade7 100644 --- a/_api-reference/render-template.md +++ b/_api-reference/render-template.md @@ -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 %}" } } }, @@ -80,7 +80,7 @@ If you don't want to use a saved template, or want to test a template before sav "size": "{% raw %}{{size}}{{^size}}10{{/size}}{% endraw %}", "query": { "match": { - "play_name": "{{play_name}}" + "play_name": "{% raw %{{play_name}}{% endraw %}" } } }, From dd2a05e305b4d8b674d19c9a91d21245401f18c9 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:21:06 -0500 Subject: [PATCH 3/4] Update _api-reference/render-template.md Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _api-reference/render-template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_api-reference/render-template.md b/_api-reference/render-template.md index d304d5ade7..077abfe9af 100644 --- a/_api-reference/render-template.md +++ b/_api-reference/render-template.md @@ -44,7 +44,7 @@ Both of the following request examples use the search template with the template "source": { "query": { "match": { - "play_name": "{% raw %{{play_name}}{% endraw %}" + "play_name": "{% raw %}{{play_name}}{% endraw %}" } } }, From 31e9b1f177c0b168aca4254756d15bff4f6fe728 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:21:12 -0500 Subject: [PATCH 4/4] Update _api-reference/render-template.md Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _api-reference/render-template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_api-reference/render-template.md b/_api-reference/render-template.md index 077abfe9af..409fde5e4a 100644 --- a/_api-reference/render-template.md +++ b/_api-reference/render-template.md @@ -80,7 +80,7 @@ If you don't want to use a saved template, or want to test a template before sav "size": "{% raw %}{{size}}{{^size}}10{{/size}}{% endraw %}", "query": { "match": { - "play_name": "{% raw %{{play_name}}{% endraw %}" + "play_name": "{% raw %}{{play_name}}{% endraw %}" } } },