From 02fc23516c726aadc07fc0dbb3caccab6b0764b7 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Thu, 15 Jul 2021 14:53:10 -0400 Subject: [PATCH] [DOCS] Fix broken doc url values in JSON API spec (#75385) (#75389) Fixes a broken link in the `documentation.url` for the field usage stats API and enroll Kibana API. These broken links caused the build for the JS client docs to fail. # Conflicts: # docs/reference/redirects.asciidoc # rest-api-spec/src/main/resources/rest-api-spec/api/security.enroll_kibana.json --- docs/reference/indices.asciidoc | 2 ++ docs/reference/redirects.asciidoc | 5 +++++ .../rest-api-spec/api/indices.field_usage_stats.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/reference/indices.asciidoc b/docs/reference/indices.asciidoc index 0f4d0919a3e1f..18a2657245b3c 100644 --- a/docs/reference/indices.asciidoc +++ b/docs/reference/indices.asciidoc @@ -72,6 +72,7 @@ For more information, see <>. [[monitoring]] === Monitoring: * <> +* <> * <> * <> * <> @@ -111,6 +112,7 @@ include::indices/delete-index.asciidoc[] include::indices/delete-index-template.asciidoc[] include::indices/delete-index-template-v1.asciidoc[] include::indices/indices-exists.asciidoc[] +include::indices/field-usage-stats.asciidoc[] include::indices/flush.asciidoc[] include::indices/forcemerge.asciidoc[] include::indices/apis/freeze.asciidoc[] diff --git a/docs/reference/redirects.asciidoc b/docs/reference/redirects.asciidoc index b56d7710c3fb0..05f3aeae37ce3 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -1579,3 +1579,8 @@ include::redirects.asciidoc[tag=frozen-index-redirect] === Glossary See the {glossary}/terms.html[Elastic glossary]. + +[role="exclude",id="indices-field-usage-stats"] +=== Field usage stats API + +See <>. diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.field_usage_stats.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.field_usage_stats.json index 90eb729da200d..efdbdfa4d422a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.field_usage_stats.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.field_usage_stats.json @@ -1,7 +1,7 @@ { "indices.field_usage_stats": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-field-usage-stats.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/field-usage-stats.html", "description": "Returns the field usage stats for each field of an index" }, "stability": "experimental",