forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relates to elastic#4879 This moves mustache back to being shaded - having guava (which is a needed dependency of mustache) explicitly in the distribution files isn't an option: Used by too many projects and thus likely to cause version conflicts downstream. In addition this adds a rest test for the query templating feature.
- Loading branch information
Isabel Drost-Fromm
committed
Feb 19, 2014
1 parent
be48f5f
commit 3412f46
Showing
4 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
rest-api-spec/test/search/30_template_query_execution.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
"Template query": | ||
|
||
- do: | ||
index: | ||
index: test | ||
type: testtype | ||
id: 1 | ||
body: { "text": "value1" } | ||
- do: | ||
indices.refresh: {} | ||
|
||
- do: | ||
search: | ||
body: { "query": { "template": { "query": "{\"match_{{template}}\": {}}", "params" : { "template" : "all" } } } } | ||
|
||
- match: { hits.total: 1 } | ||
|
||
|
||
- do: | ||
search: | ||
body: { "query": { "template": { "query": {"match_{{template}}": {}}, "params" : { "template" : "all" } } } } | ||
|
||
- match: { hits.total: 1 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters