mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Split scroll as separate endpoint
This commit is contained in:
parent
b8eee37882
commit
34ace1ff91
29
rest-api-spec/api/scroll.json
Normal file
29
rest-api-spec/api/scroll.json
Normal file
@ -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"],
|
"methods": ["GET", "POST"],
|
||||||
"url": {
|
"url": {
|
||||||
"path": "/_search",
|
"path": "/_search",
|
||||||
"paths": ["/_search", "/{index}/_search", "/{index}/{type}/_search", "/_search/scroll", "/_search/scroll/{scroll_id}"],
|
"paths": ["/_search", "/{index}/_search", "/{index}/{type}/_search"],
|
||||||
"parts": {
|
"parts": {
|
||||||
"index": {
|
"index": {
|
||||||
"type" : "list",
|
"type" : "list",
|
||||||
@ -13,10 +13,6 @@
|
|||||||
"type": {
|
"type": {
|
||||||
"type" : "list",
|
"type" : "list",
|
||||||
"description" : "A comma-separated list of document types to search; leave empty to perform the operation on all types"
|
"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": {
|
"params": {
|
||||||
@ -87,10 +83,6 @@
|
|||||||
"type" : "duration",
|
"type" : "duration",
|
||||||
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
"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": {
|
"search_type": {
|
||||||
"type" : "enum",
|
"type" : "enum",
|
||||||
"options" : ["query_then_fetch", "query_and_fetch", "dfs_query_then_fetch", "dfs_query_and_fetch", "count", "scan"],
|
"options" : ["query_then_fetch", "query_and_fetch", "dfs_query_then_fetch", "dfs_query_and_fetch", "count", "scan"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user