From 83928d7feee20bcd11d2c9579e9f84eedfc530fb Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 16:48:41 +0200 Subject: [PATCH] Added the API definition for updating the mapping --- rest-api-spec/api/indices.mapping.put.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/rest-api-spec/api/indices.mapping.put.json b/rest-api-spec/api/indices.mapping.put.json index fb3b2709bd2..2bb64c31b7c 100644 --- a/rest-api-spec/api/indices.mapping.put.json +++ b/rest-api-spec/api/indices.mapping.put.json @@ -1,24 +1,30 @@ { "indices.mapping.put": { - "documentation": "", + "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/", "methods": ["PUT", "POST"], "url": { "path": "/{index}/_mapping", "paths": ["/{index}/_mapping", "/{index}/{type}/_mapping"], "parts": { "index": { + "type" : "list", + "required" : true, + "description" : "A comma-separated list of index names; use `_all` to perform the operation on all indices" }, "type": { + "type" : "string", + "required" : true, + "description" : "The name of the document type" } }, "params": { "ignore_conflicts": { - }, - "index": { + "type" : "boolean", + "description" : "Specify whether to ignore conflicts while updating the mapping (default: false)" }, "timeout": { - }, - "type": { + "type" : "time", + "description" : "Explicit operation timeout" } } },