Made REST query param types consistent
duration -> time integer,float -> number
This commit is contained in:
parent
7b65c97483
commit
e1ad00f07a
|
@ -94,7 +94,7 @@
|
|||
"description" : "A comma-separated list of specific routing values"
|
||||
},
|
||||
"scroll": {
|
||||
"type" : "duration",
|
||||
"type" : "time",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"search_type": {
|
||||
|
@ -182,7 +182,7 @@
|
|||
"description" : "Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
|
||||
},
|
||||
"scroll_size": {
|
||||
"type": "integer",
|
||||
"type": "number",
|
||||
"defaut_value": 100,
|
||||
"description": "Size on the scroll request powering the update_by_query"
|
||||
},
|
||||
|
@ -192,7 +192,7 @@
|
|||
"description" : "Should the request should block until the delete-by-query is complete."
|
||||
},
|
||||
"requests_per_second": {
|
||||
"type": "float",
|
||||
"type": "number",
|
||||
"default": 0,
|
||||
"description": "The throttle for this request in sub-requests per second. -1 means set no throttle."
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
"description" : "Explicit timestamp for the document"
|
||||
},
|
||||
"ttl": {
|
||||
"type" : "duration",
|
||||
"type" : "time",
|
||||
"description" : "Expiration time for the document"
|
||||
},
|
||||
"version" : {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"description" : "Should the request should block until the reindex is complete."
|
||||
},
|
||||
"requests_per_second": {
|
||||
"type": "float",
|
||||
"type": "number",
|
||||
"default": 0,
|
||||
"description": "The throttle to set on this request in sub-requests per second. -1 means set no throttle as does \"unlimited\" which is the only non-float this accepts."
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"params": {
|
||||
"requests_per_second": {
|
||||
"type": "float",
|
||||
"type": "number",
|
||||
"required": true,
|
||||
"description": "The throttle to set on this request in floating sub-requests per second. -1 means set no throttle."
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"params": {
|
||||
"scroll": {
|
||||
"type" : "duration",
|
||||
"type" : "time",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"scroll_id": {
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
"description" : "A comma-separated list of specific routing values"
|
||||
},
|
||||
"scroll": {
|
||||
"type" : "duration",
|
||||
"type" : "time",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"search_type": {
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
"description" : "A comma-separated list of specific routing values"
|
||||
},
|
||||
"scroll": {
|
||||
"type" : "duration",
|
||||
"type" : "time",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"search_type": {
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
"description": "Explicit timestamp for the document"
|
||||
},
|
||||
"ttl": {
|
||||
"type": "duration",
|
||||
"type": "time",
|
||||
"description": "Expiration time for the document"
|
||||
},
|
||||
"version": {
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
"description" : "A comma-separated list of specific routing values"
|
||||
},
|
||||
"scroll": {
|
||||
"type" : "duration",
|
||||
"type" : "time",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"search_type": {
|
||||
|
@ -194,7 +194,7 @@
|
|||
"description" : "Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
|
||||
},
|
||||
"scroll_size": {
|
||||
"type": "integer",
|
||||
"type": "number",
|
||||
"defaut_value": 100,
|
||||
"description": "Size on the scroll request powering the update_by_query"
|
||||
},
|
||||
|
@ -204,7 +204,7 @@
|
|||
"description" : "Should the request should block until the reindex is complete."
|
||||
},
|
||||
"requests_per_second": {
|
||||
"type": "float",
|
||||
"type": "number",
|
||||
"default": 0,
|
||||
"description": "The throttle to set on this request in sub-requests per second. -1 means set no throttle as does \"unlimited\" which is the only non-float this accepts."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue