Reinstate params in rest api specs (#52544)

This commit reinstates the following params in the rest specs:

1. "analyzer" in delete_by_query
2. "ccs_minimize_roundtrips" in msearch_template
3. "ccs_minimize_roundtrips" in search_template

All appear to be valid options that seem to have been inadvertantly removed
between 7.3 and 7.4.

Fixes elastic/elasticsearch#47768
This commit is contained in:
Russ Cam 2020-02-20 14:39:15 +11:00 committed by GitHub
parent 62da077beb
commit 087ceb899b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,10 @@
] ]
}, },
"params":{ "params":{
"analyzer": {
"type" : "string",
"description" : "The analyzer to use for the query string"
},
"analyze_wildcard": { "analyze_wildcard": {
"type" : "boolean", "type" : "boolean",
"description" : "Specify whether wildcard and prefix queries should be analyzed (default: false)" "description" : "Specify whether wildcard and prefix queries should be analyzed (default: false)"

View File

@ -70,6 +70,11 @@
"type" : "boolean", "type" : "boolean",
"description" : "Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "description" : "Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
"default" : false "default" : false
},
"ccs_minimize_roundtrips": {
"type" : "boolean",
"description" : "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution",
"default" : "true"
} }
}, },
"body":{ "body":{

View File

@ -109,6 +109,11 @@
"type":"boolean", "type":"boolean",
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
"default":false "default":false
},
"ccs_minimize_roundtrips": {
"type" : "boolean",
"description" : "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution",
"default" : "true"
} }
}, },
"body":{ "body":{