From bb6e539bc7264fc63d7db9f8ba8e99868179db17 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 10 Dec 2014 12:33:22 +0100 Subject: [PATCH] updated (m)termvectors api specs to reflect #7530 which made it into 1.4 --- rest-api-spec/api/mtermvectors.json | 8 ++------ rest-api-spec/api/termvectors.json | 9 ++++----- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/rest-api-spec/api/mtermvectors.json b/rest-api-spec/api/mtermvectors.json index 12838caf2b5..089c647f63e 100644 --- a/rest-api-spec/api/mtermvectors.json +++ b/rest-api-spec/api/mtermvectors.json @@ -13,11 +13,7 @@ "type" : { "type" : "string", "description" : "The type of the document." - }, - "id" : { - "type" : "string", - "description" : "The id of the document." - } + } }, "params" : { "ids" : { @@ -83,7 +79,7 @@ } }, "body" : { - "description" : "Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.", + "description" : "Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.", "required" : false } diff --git a/rest-api-spec/api/termvectors.json b/rest-api-spec/api/termvectors.json index cd84ede5491..c4f376c3b0a 100644 --- a/rest-api-spec/api/termvectors.json +++ b/rest-api-spec/api/termvectors.json @@ -3,8 +3,8 @@ "documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-termvectors.html", "methods" : ["GET", "POST"], "url" : { - "path" : "/{index}/{type}/{id}/_termvectors", - "paths" : ["/{index}/{type}/{id}/_termvectors"], + "path" : "/{index}/{type}/_termvectors", + "paths" : ["/{index}/{type}/_termvectors", "/{index}/{type}/{id}/_termvectors"], "parts" : { "index" : { "type" : "string", @@ -18,8 +18,7 @@ }, "id" : { "type" : "string", - "description" : "The id of the document.", - "required" : true + "description" : "The id of the document, when not specified a doc param should be supplied." } }, "params": { @@ -87,7 +86,7 @@ } }, "body": { - "description" : "Define parameters. See documentation.", + "description" : "Define parameters and or supply a document to get termvectors for. See documentation.", "required" : false } }