[API] renaming search-template to search_template.
Name of the API should be a valid identifier.
This commit is contained in:
parent
7d7f2d728e
commit
ed842a88da
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"search-template": {
|
"search_template": {
|
||||||
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-search.html",
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-search.html",
|
||||||
"methods": ["GET", "POST"],
|
"methods": ["GET", "POST"],
|
||||||
"url": {
|
"url": {
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
indices.refresh: {}
|
indices.refresh: {}
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search-template:
|
search_template:
|
||||||
body: { "template" : { "query": { "term": { "text": { "value": "{{template}}" } } } }, "params": { "template": "value1" } }
|
body: { "template" : { "query": { "term": { "text": { "value": "{{template}}" } } } }, "params": { "template": "value1" } }
|
||||||
|
|
||||||
- match: { hits.total: 1 }
|
- match: { hits.total: 1 }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
search-template:
|
search_template:
|
||||||
body: { "template" : { "query": { "match_{{template}}": {} } }, "params" : { "template" : "all" } }
|
body: { "template" : { "query": { "match_{{template}}": {} } }, "params" : { "template" : "all" } }
|
||||||
|
|
||||||
- match: { hits.total: 2 }
|
- match: { hits.total: 2 }
|
||||||
|
|
Loading…
Reference in New Issue