[API] renaming search-template to search_template.

Name of the API should be a valid identifier.
This commit is contained in:
Honza Král 2014-03-20 21:58:08 +01:00
parent 7d7f2d728e
commit ed842a88da
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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 }