OpenSearch/docs/reference/query-dsl/queries
Oliver Eilhard 95e9b86505 Mustache tags syntax
Hi there. I've been experimenting with the search templates recently and I'm a bit confused. Shouldn't the Mustache tags be written like `{{tagname}}` instead of `{tagname}`? Your using `{{...}}` [here](http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html) BTW.

Using the first example in that page  seems to indicate that something's wrong, or am I missing something?

```
$ curl 'localhost:9200/test/_search' -d '{"query":{"template":{"query":{"match":{"text":"{keywords}"}},"params":{"keywords":"value1_foo"}}}}'
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}

$ curl 'localhost:9200/test/_search' -d '{"query":{"template":{"query":{"match":{"text":"{{keywords}}"}},"params":{"keywords":"value1_foo"}}}}'
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"test","_type":"testtype","_id":"1","_score":1.0,"_source":{"text":"value1_foo"}}]}}
```
2015-04-24 21:23:58 +02:00
..
bool-query.asciidoc Docs: Additional info about _score calculation 2014-11-28 13:54:45 +01:00
boosting-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
common-terms-query.asciidoc Docs: Note on shard vs. index level doc frequencies. 2015-04-07 14:28:01 +02:00
constant-score-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
dis-max-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
filtered-query.asciidoc Upgrade master to lucene 5.0 snapshot 2014-11-05 15:48:51 -05:00
function-score-query.asciidoc Docs: Updated version annotations in master 2015-04-09 14:50:11 +02:00
fuzzy-query.asciidoc [DOCS] Fixed the fuzzy query docs with correct default value max_expansion option 2014-06-05 19:52:12 +02:00
geo-shape-query.asciidoc [DOCS] Removed outdated new/deprecated version notices 2013-09-03 21:28:31 +02:00
has-child-query.asciidoc Adding "min" score mode to parent-child queries 2014-10-15 09:23:36 -05:00
has-parent-query.asciidoc Docs: Updated the explanation about memory usage with parent/child 2014-06-21 16:32:29 +02:00
ids-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
indices-query.asciidoc Removed 0.90.* deprecation and addition notifications 2014-02-07 20:52:49 +01:00
match-all-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
match-query.asciidoc Docs: Note on shard vs. index level doc frequencies. 2015-04-07 14:28:01 +02:00
minimum-should-match.asciidoc Docs: Update minimum-should-match.asciidoc 2014-10-21 09:43:55 +02:00
mlt-query.asciidoc Term Vectors: terms filtering 2015-04-14 19:11:09 +02:00
multi-match-query.asciidoc Docs: cross_type query needs to be cross_fields 2014-10-15 18:27:48 +02:00
multi-term-rewrite.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
nested-query.asciidoc Update nested-query.asciidoc 2014-07-26 22:32:28 +02:00
prefix-query.asciidoc Docs: Update prefix-query.asciidoc 2014-09-07 11:32:05 +02:00
query-string-query.asciidoc Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
query-string-syntax.asciidoc Docs: Missing 1 escape character in example 2015-04-07 14:10:17 +02:00
range-query.asciidoc Docs: Update range-query.asciidoc 2014-12-02 12:55:44 +01:00
regexp-query.asciidoc Docs: The regexp query defaults to the `ALL` flag, and removed 2014-12-30 19:53:31 +01:00
regexp-syntax.asciidoc Docs: The regexp query defaults to the `ALL` flag, and removed 2014-12-30 19:53:31 +01:00
simple-query-string-query.asciidoc Docs: Fix simple_query_string example 2015-04-13 14:46:47 +02:00
span-first-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-multi-term-query.asciidoc Update span-multi-term-query.asciidoc 2015-02-28 03:05:05 +01:00
span-near-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-not-query.asciidoc Applied PR, changed the way defaults are handled and updated the docs. 2014-11-24 13:32:41 +01:00
span-or-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-term-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
template-query.asciidoc Mustache tags syntax 2015-04-24 21:23:58 +02:00
term-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
terms-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
top-children-query.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
wildcard-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00