This is a part of my search query template:
"query": {
"bool": {
"must": [
{
"terms": {
"platform_id": [
"{{#platform_ids}}",
"{{.}}",
"{{/platform_ids}}"
]
}
}
],
This solution was taken from the elasticsearch official website.
I have this query:
GET _render/template
{
"id": "fddf",
"params": {
"query_string": "tinders",
"platform_ids": [1, 2]
}
}
And this results with this:
"terms" : {
"platform_id" : [
"",
"1",
"",
"2",
""
]
}
But I need this:
"terms" : {
"platform_id" : [
1, 2
]
}
Couldn't find a solution for this.