From d3a8094d359946ac76362b5019e4e464167392df Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Fri, 6 Jul 2018 09:05:34 +0100 Subject: [PATCH] Remove obsolete parameters from analyze rest spec (#31795) This commit also fixes a typo in the analyze high-level client documentation. --- docs/java-rest/high-level/indices/analyze.asciidoc | 2 +- .../resources/rest-api-spec/api/indices.analyze.json | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/java-rest/high-level/indices/analyze.asciidoc b/docs/java-rest/high-level/indices/analyze.asciidoc index 4bffe2f02038..049696d128ce 100644 --- a/docs/java-rest/high-level/indices/analyze.asciidoc +++ b/docs/java-rest/high-level/indices/analyze.asciidoc @@ -56,7 +56,7 @@ You can analyze text using the mappings for a particular field in an index: include-tagged::{doc-tests}/IndicesClientDocumentationIT.java[analyze-field-request] --------------------------------------------------- -==== Optional arguemnts +==== Optional arguments The following arguments can also optionally be provided: ["source","java",subs="attributes,callouts,macros"] diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json index 939653889164..c340ccd2f37c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json @@ -15,16 +15,6 @@ "index": { "type" : "string", "description" : "The name of the index to scope the operation" - }, - "prefer_local": { - "type" : "boolean", - "description" : "With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)" - }, - "format": { - "type": "enum", - "options" : ["detailed","text"], - "default": "detailed", - "description": "Format of the output" } } },