mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Added the API definition for _msearch
This commit is contained in:
parent
fc51ebfce8
commit
48c9e0c498
30
rest-api-spec/api/msearch.json
Normal file
30
rest-api-spec/api/msearch.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"search": {
|
||||||
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/multi-search/",
|
||||||
|
"methods": ["GET", "POST"],
|
||||||
|
"url": {
|
||||||
|
"path": "/_msearch",
|
||||||
|
"paths": ["/_msearch", "/{index}/_msearch", "/{index}/{type}/_msearch"],
|
||||||
|
"parts": {
|
||||||
|
"index": {
|
||||||
|
"type" : "list",
|
||||||
|
"description" : "A comma-separated list of index names to use as default"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type" : "list",
|
||||||
|
"description" : "A comma-separated list of document types to use as default"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"params": {
|
||||||
|
"search_type": {
|
||||||
|
"type" : "enum",
|
||||||
|
"options" : ["query_then_fetch", "query_and_fetch", "dfs_query_then_fetch", "dfs_query_and_fetch", "count", "scan"],
|
||||||
|
"description" : "Search operation type"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"body": {
|
||||||
|
"description": "The request definitions (metadata-search request pairs), separated by newlines"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user