[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",
|
||||
"methods": ["GET", "POST"],
|
||||
"url": {
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
indices.refresh: {}
|
||||
|
||||
- do:
|
||||
search-template:
|
||||
search_template:
|
||||
body: { "template" : { "query": { "term": { "text": { "value": "{{template}}" } } } }, "params": { "template": "value1" } }
|
||||
|
||||
- match: { hits.total: 1 }
|
||||
|
||||
- do:
|
||||
search-template:
|
||||
search_template:
|
||||
body: { "template" : { "query": { "match_{{template}}": {} } }, "params" : { "template" : "all" } }
|
||||
|
||||
- match: { hits.total: 2 }
|
||||
|
|
Loading…
Reference in New Issue