mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
Rename Search Template REST tests
This commit is contained in:
parent
3e199b1dff
commit
c8a9b28d1b
@ -36,7 +36,7 @@ setup:
|
|||||||
"Basic multi-search template":
|
"Basic multi-search template":
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
template.msearch:
|
msearch_template:
|
||||||
body:
|
body:
|
||||||
- index: index_*
|
- index: index_*
|
||||||
- inline: '{"query": {"match": {"foo": "{{value}}"} } }'
|
- inline: '{"query": {"match": {"foo": "{{value}}"} } }'
|
||||||
@ -71,7 +71,7 @@ setup:
|
|||||||
"Multi-search template with errors":
|
"Multi-search template with errors":
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
template.msearch:
|
msearch_template:
|
||||||
body:
|
body:
|
||||||
# Search 0 is OK
|
# Search 0 is OK
|
||||||
- index: index_*
|
- index: index_*
|
||||||
@ -109,7 +109,7 @@ setup:
|
|||||||
|
|
||||||
- do:
|
- do:
|
||||||
catch: /(.)*action_request_validation_exception(.)*template.is.missing(.)*/
|
catch: /(.)*action_request_validation_exception(.)*template.is.missing(.)*/
|
||||||
template.msearch:
|
msearch_template:
|
||||||
body:
|
body:
|
||||||
# Search 0 is OK
|
# Search 0 is OK
|
||||||
- index: index_*
|
- index: index_*
|
@ -42,7 +42,7 @@ setup:
|
|||||||
- match: { acknowledged: true }
|
- match: { acknowledged: true }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
template.msearch:
|
msearch_template:
|
||||||
body:
|
body:
|
||||||
- index: index_*
|
- index: index_*
|
||||||
- id: stored_template_1
|
- id: stored_template_1
|
@ -44,7 +44,7 @@ setup:
|
|||||||
- match: { template_output.size: 20 }
|
- match: { template_output.size: 20 }
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
template.msearch:
|
msearch_template:
|
||||||
body:
|
body:
|
||||||
- index: index_*
|
- index: index_*
|
||||||
- file: template_1
|
- file: template_1
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"template.msearch": {
|
"msearch_template": {
|
||||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html",
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html",
|
||||||
"methods": ["GET", "POST"],
|
"methods": ["GET", "POST"],
|
||||||
"url": {
|
"url": {
|
@ -1,56 +0,0 @@
|
|||||||
{
|
|
||||||
"template.search": {
|
|
||||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html",
|
|
||||||
"methods": ["GET", "POST"],
|
|
||||||
"url": {
|
|
||||||
"path": "/_search/template",
|
|
||||||
"paths": ["/_search/template", "/{index}/_search/template", "/{index}/{type}/_search/template"],
|
|
||||||
"parts": {
|
|
||||||
"index": {
|
|
||||||
"type" : "list",
|
|
||||||
"description" : "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices"
|
|
||||||
},
|
|
||||||
"type": {
|
|
||||||
"type" : "list",
|
|
||||||
"description" : "A comma-separated list of document types to search; leave empty to perform the operation on all types"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"params" : {
|
|
||||||
"ignore_unavailable": {
|
|
||||||
"type" : "boolean",
|
|
||||||
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
|
|
||||||
},
|
|
||||||
"allow_no_indices": {
|
|
||||||
"type" : "boolean",
|
|
||||||
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
|
|
||||||
},
|
|
||||||
"expand_wildcards": {
|
|
||||||
"type" : "enum",
|
|
||||||
"options" : ["open","closed","none","all"],
|
|
||||||
"default" : "open",
|
|
||||||
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
|
|
||||||
},
|
|
||||||
"preference": {
|
|
||||||
"type" : "string",
|
|
||||||
"description" : "Specify the node or shard the operation should be performed on (default: random)"
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"type" : "list",
|
|
||||||
"description" : "A comma-separated list of specific routing values"
|
|
||||||
},
|
|
||||||
"scroll": {
|
|
||||||
"type" : "duration",
|
|
||||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
|
||||||
},
|
|
||||||
"search_type": {
|
|
||||||
"type" : "enum",
|
|
||||||
"options" : ["query_then_fetch", "query_and_fetch", "dfs_query_then_fetch", "dfs_query_and_fetch"],
|
|
||||||
"description" : "Search operation type"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": {
|
|
||||||
"description": "The search definition template and its params"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user