From 48c9e0c4987ccff20ba9a940a4516f69718d5974 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 23:35:57 +0200 Subject: [PATCH] Added the API definition for `_msearch` --- rest-api-spec/api/msearch.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 rest-api-spec/api/msearch.json diff --git a/rest-api-spec/api/msearch.json b/rest-api-spec/api/msearch.json new file mode 100644 index 00000000000..2ac8ed3edef --- /dev/null +++ b/rest-api-spec/api/msearch.json @@ -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" + } + } +}