Split scroll as separate endpoint
This commit is contained in:
parent
b8eee37882
commit
34ace1ff91
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"search": {
|
||||
"documentation": "http://www.elasticsearch.org/guide/reference/api/search/",
|
||||
"methods": ["GET", "POST"],
|
||||
"url": {
|
||||
"path": "/_search/scroll",
|
||||
"paths": ["/_search/scroll", "/_search/scroll/{scroll_id}"],
|
||||
"parts": {
|
||||
"scroll_id": {
|
||||
"type" : "string",
|
||||
"description" : "The scroll ID"
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"scroll": {
|
||||
"type" : "duration",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"scroll_id": {
|
||||
"type" : "string",
|
||||
"description" : "The scroll ID for scrolled search"
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
"description": "The scroll ID if not passed by URL or query parameter."
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
"methods": ["GET", "POST"],
|
||||
"url": {
|
||||
"path": "/_search",
|
||||
"paths": ["/_search", "/{index}/_search", "/{index}/{type}/_search", "/_search/scroll", "/_search/scroll/{scroll_id}"],
|
||||
"paths": ["/_search", "/{index}/_search", "/{index}/{type}/_search"],
|
||||
"parts": {
|
||||
"index": {
|
||||
"type" : "list",
|
||||
|
@ -13,10 +13,6 @@
|
|||
"type": {
|
||||
"type" : "list",
|
||||
"description" : "A comma-separated list of document types to search; leave empty to perform the operation on all types"
|
||||
},
|
||||
"scroll_id": {
|
||||
"type" : "string",
|
||||
"description" : "The scroll ID"
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
|
@ -87,10 +83,6 @@
|
|||
"type" : "duration",
|
||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
||||
},
|
||||
"scroll_id": {
|
||||
"type" : "string",
|
||||
"description" : "The scroll ID for scrolled search"
|
||||
},
|
||||
"search_type": {
|
||||
"type" : "enum",
|
||||
"options" : ["query_then_fetch", "query_and_fetch", "dfs_query_then_fetch", "dfs_query_and_fetch", "count", "scan"],
|
||||
|
|
Loading…
Reference in New Issue